|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #40102 Mail() Function Abuse Tracking
Submitted: 2007-01-11 22:16 UTC Modified: 2009-02-02 11:44 UTC
Avg. Score:5.0 ± 0.0
Reproduced:115 of 115 (100.0%)
Same Version:45 (39.1%)
Same OS:50 (43.5%)
From: w dot ashcroft at redfoxuk dot com Assigned: iliaa (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.x.x, 5.x.x, 6.x.x OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
10 - 4 = ?
Subscribe to this entry?

 [2007-01-11 22:16 UTC] w dot ashcroft at redfoxuk dot com
This isnt a bug as such, but rather a change that is desperatly needed to the mail() function. Currently when this is abused there is NO WAY to track which user/website/IP is abusing the function - what we really need is for PHP to insert an header that cannot be removed by the website administrator (possibly a setting in php.ini to enabled this email header tracking feature by the system administrator).

This header will contain information that will help the system admin track the abuser; such a patch that works very well (and is VERY simple to implement) can be found here: is a real headache for the system administrators that really need this change to have to recompile PHP.

Reproduce code:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-16 15:35 UTC] paul at pwnewmedia dot com
I agree, this is very much needed and would help a lot in the battle against spam!
 [2007-06-17 15:06 UTC] w dot ashcroft at redfoxuk dot com
Updated to all OS's.
 [2008-08-25 19:44 UTC] w dot ashcroft at redfoxuk dot com
More information about this patch can be found at:
 [2009-02-02 11:44 UTC]
a mail logging functionality that allows logging of mail sent via mail() function has been implemented in 5.3.0 (from beta1), thx to Ilia.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 03:01:27 2024 UTC