php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6127 mail() function hangs the script
Submitted: 2000-08-12 05:28 UTC Modified: 2000-09-03 07:48 UTC
From: wckramer at knmg dot nl Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: winNT iis4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wckramer at knmg dot nl
New email:
PHP Version: OS:

 

 [2000-08-12 05:28 UTC] wckramer at knmg dot nl
I used the following script
<?
print("mail");
mail("me@myhost.com","why stops the script","AARGH");
print("send");
?>

The script doesn't print "mail" or "send" and it doesn't sned the mail.

I realy have the correct smtp server-adres in my php.ini 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-20 07:25 UTC] sniper@php.net
Please try CVS or snapshot (http://snaps.php.net). This should be fixed there.

--Jani
 [2000-09-03 07:48 UTC] waldschrott@php.net
Closed due to missing user feedback, most likely non
existent anymore.
 [2002-05-12 18:19 UTC] superoverdrive at gmx dot de
Same problem here! Once in a while, some scripts hang....I found out it is just the mail line! It does sometimes work though but not always...really odd. Right now I also get this time out....

You ALWAYS get this timeout when you have an error in the mail syntax.

mail("$email", "$subject", $body,
     "From: me@mydomain.com\nReply-To: $sender\nX-Mailer: PHP/" . phpversion());


Tobi
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Sep 07 08:00:02 2025 UTC