News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ilia Alshanetsky's Blog:
mail() logging for PHP
December 13, 2006 @ 16:56:00

In his latest blog entry, Ilia Alshanetsky has proposed (and provided) a patch that can help with one of the more abused of the popular PHP functions out there - mail().

One of the problems with solving the mail() abuse is figuring out who is doing it or perhaps what script was exploited to do it, since the mail() function does not offer any logging mechanism.

To address this problem, he's supplied this patch you can apply to your source to add two new options to the mail function:

  • enable the addition of the X-PHP-Originating-Script header
  • mail.log (takes a filename) allows you to enable logging of every single mail() call
Check out his entry for more details on configuration options and other functionality included with the patch.

0 comments voice your opinion now!
mail logging function patch add header configure mail logging function patch add header configure


blog comments powered by Disqus

Similar Posts

Brendon's Blog: 10 PHP functions you (probably) never use

Fabian's Blog: Better Performance patch for Symfony 1.0.x and Propel 1.2

Bill Staples' Blog: IIS7 Patch for Windows Vista fixes CGI/PHP apps - multiple response headers

Zend Developer Zone: Accessing DB2 Data Inside of i5/OS

Scott Mattocks\' Blog: PHP-GTK News #10


Community Events





Don't see your event here?
Let us know!


threedevsandamaybe podcast framework series introduction unittest opinion language developer install laravel api release code list symfony2 community interview refactor testing

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework