<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 29 Aug 2008 03:56:58 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DeveloperTutorials.com: Writing an Email Autoresponder Script with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9360</guid>
      <link>http://www.phpdeveloper.org/news/9360</link>
      <description><![CDATA[<p>
The DeveloperTutorials website has a <a href="http://www.developertutorials.com/tutorials/php/writing-an-email-autoresponder-script-with-php-8-01-03/page1.html">new article</a> that steps you through the creation of an autoresponder script for an email account (in qmail).
</p>
<blockquote>
It's very convenient for users to be able to communicate with web applications (or businesses) via email, but it's not always easy for the employees of the company to respond. Some of the email requests could be complex, and others could be simple but occur very frequently. So it's a real advantage when we can write scripts to respond to user emails for us.
</blockquote>
<p>
<a href="http://www.developertutorials.com/tutorials/php/writing-an-email-autoresponder-script-with-php-8-01-03/page1.html">The tutorial</a> sets up a basic structure for you to work from including places for the addresses and extra headers for the response. You can also <a href="http://www.mollerus.net/tom/blog/downloads/autoresponder.script.php.txt">download the code</a> to have it to follow along with (or play around with yourself).
</p>]]></description>
      <pubDate>Fri, 04 Jan 2008 15:58:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Tobias Schlitt's Blog: Qmail and PHPs mail() function]]></title>
      <guid>http://www.phpdeveloper.org/news/6294</guid>
      <link>http://www.phpdeveloper.org/news/6294</link>
      <description><![CDATA[<p>
Anyone noticing some "quirkiness" happening when they use the eZ Mail component in their scripts and bounce the messages off of a Qmail server, might want to check out <a href="http://schlitt.info/applications/blog/index.php?/archives/492-Qmail-and-PHPs-mail-function.html">this helpful hint</a> from <i>Tobias Schlitt</i> on how he solved it.
</p>
<blockquote>
While working with the <a href="http://components.ez.no/doc/Mail">eZ Mail component</a>, for sending some emails comfortably, I noticed some issue with my Qmail installation. With some email accounts that received the emails, the headers were broken and had double line break characters, so the complete email was broken. That (weirdly) happened only with some servers (e.g. Gmail), while my own server handeled the emails gracefully.
</blockquote>
<p>
He discovers that the issue lies on Qmail's side, where the sendmail wrapper for it looks for a "\n" instead of a "\r\n" line PHP sends at the end of a line. Thankfully, it's an easy fix with the eZ Mail component:
[php]
<?php
ezcMailTools::setLineBreak( "\\n" );
?>
[/php]
Check out <a href="http://ez.no/doc/components/view/latest/(file)/Mail/ezcMailTools.html">this page</a> for more information on this functionality.
</p>]]></description>
      <pubDate>Mon, 18 Sep 2006 07:57:44 -0500</pubDate>
    </item>
  </channel>
</rss>
