[PATCH] Add information header to mail()

php.internals

Bennett, Steve

22 years ago
This is a patch to add an informational header to messages sent from PHP via the mail() function. This can help to track which script on a server was used to send a message, and which client caused it to be sent. The header added has the form: X-PHP-Script: <servername><php-self> for <remote-addr> For example: X-PHP-Script: www.example.com/~user/testapp/send-mail.php for 10.0.0.1 http://www.lancs.ac.uk/~steveb/php-mail-header-patch/ Steve.