|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #2203 Failed mail() function untrackable.
Submitted: 1999-08-31 09:57 UTC Modified: 2000-08-05 00:48 UTC
From: adconrad at 0c3 dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.12 OS: Linux 2.2.10 (Debian potato)
Private report: No CVE-ID: None
 [1999-08-31 09:57 UTC] adconrad at 0c3 dot net
I run a webserver where I allow users the use of PHP3 for their websites.

The issue I have run accross that is more of an annoyance than anything else, but can fill the postmaster's inbox fairly quickly if I'm not careful.

If a user sets up a mail() function and it tries to send to nobody (ie: no outgoing address), I get mail in the postmaster's inbox stating that a message with a malformed recipient address was sent from www-data (the user apache runs under), and was therefore killed.  There is no information as to where this message originated, etc.

It would be nice if the mail() function automatically stuck a URL for the submitting page either on the end of the e-mail or hidden in the headers somewhere:

Sent from:

This way, if I do get messages bounced to postmaster, I can easily track down the offending user and get them to delete or fix the script.

If there's a way to do this already, and I'm just oblivious to it, please point me in the right direction.  The dead letters are starting to drive me nuts.  :)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-11 18:16 UTC] joey at cvs dot php dot net
Am moving this to a feature request, though I doubt we'll ever see it go anywhere.
I would suggest writing a general PHP script to which users post their mail request,
allowing you to control things like extra headers.
 [2000-08-05 00:48 UTC]
use direct smtp or one of the available smtp classes
instead ...
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Nov 30 12:01:25 2023 UTC