php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1321 A failed mail() makes the PHP go in an endless loop sending mails
Submitted: 1999-04-16 05:31 UTC Modified: 1999-04-16 10:07 UTC
From: christian at factory dot dk Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.6 OS: WinNT 4.0
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:
MUST BE VALID
Solve the problem:
44 - 8 = ?
Subscribe to this entry?

 
 [1999-04-16 05:31 UTC] christian at factory dot dk
Here is a example script for the bug:

<html><head><title>Untitled</title></head>

<body>
<?
       mail("christian@factory", "This is the subject", "This is the body\n", "From: christian@factory.dk");
?>
       It's done it again	

</body>
</html>

I'm trying to send an email to a non existing domain "factory" instead of "factory.dk". The PHP script apparently goes crazy and try sending the mail again every minute for a couple of days... Our mailsystem sends the sender
and error message every times. With a thousand sendings a day the system returns thousan error messages a day.  Big time SPAM!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-04-16 10:07 UTC] rasmus
This is not a PHP issue.  PHP just hands the mail off to either sendmail or in your case it probably sends it directly to an smtp server.  It just does this once.  The delivery agent you are using is doing the retries.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 13 14:01:33 2024 UTC