php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: adconrad at 0c3 dot net
New email:
PHP Version: OS:

 

 [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: http://www.somewhere.com/~user/brokenmailer.php3

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.  :)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] hholzgra@php.net
use direct smtp or one of the available smtp classes
instead ...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 21:01:30 2024 UTC