<?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>Sat, 25 May 2013 23:27:51 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Ilia Alshanetsky's Blog: Mail Logging for PHP 5.3+]]></title>
      <guid>http://www.phpdeveloper.org/news/11722</guid>
      <link>http://www.phpdeveloper.org/news/11722</link>
      <description><![CDATA[<p>
<i>Ilia Alshanetsky</i> has <a href="http://ilia.ws/archives/190-Mail-Logging-for-PHP-5.3+.html">officially submitted</a> his logging patch for the <a href="http://php.net/mail">mail</a> function in PHP:
</p>
<blockquote>
I've finally got of my ass and committed my mail logging patch I've written almost 2 years ago. This functionality is predominantly aimed at shared hosters that often have a problem identifying people who abuse the mail() function to send an in-ordinate amount of spam or hacked scripts used for the some purpose. The logging functionality is disabled by default but can be enabled on a per-directory or globally via 2 INI settings.
</blockquote>
<p>
A new directive in your php.ini file (mail.log) lets you specify where the mail log needs to go. You can also use the mail.add_x_header setting to add in a mail header with the name of the script that sent it (and the UID). 
</p>
<p>
It will be included in PHP 5.3 but if you're running PHP 5.2 and want to get a jump on it, <a href="http://news.php.net/php.cvs/55496">here's the patch</a>.
</p>]]></description>
      <pubDate>Mon, 12 Jan 2009 12:53:12 -0600</pubDate>
    </item>
  </channel>
</rss>
