PHP 4.0 Bug #5743 Updated: mail() hangs if SMTP server is localhost

From: Date: Tue, 05 Sep 2000 00:28:47 +0000
Subject: PHP 4.0 Bug #5743 Updated: mail() hangs if SMTP server is localhost
Groups: php.dev 
Request: Send a blank email to php-dev+get-32011@lists.php.net to get a copy of this message
ID: 5743 Updated by: sniper Reported By: steve@srtware.com Status: Closed Bug Type: Reproduceable crash Assigned To: Comments: This should be fixed in php4.0.2. Reopen this bug report if problem still exists. --Jani Previous Comments: [2000-07-23 12:52:09] steve@srtware.com To clarify the subject, the symptoms I see is that the browser (IE 5.01) waits indefinitely, while the SMTP server (in my case Spartacom's XtraMail) shows the initial connection but the connection never closes. It may time out eventually; I didn't wait more than a few minutes. However it's instantaneous using an external mail server. I do see an error from PHP in the browser if I stop the SMTP server while it's in this state. (The error simply indicates that mail() failed, which is correct at that point). --------------------------------------------------------------------------- [2000-07-23 10:54:29] steve@srtware.com The PHP version number above is wrong, my version (PHP 4.0.1pl2 - 30 June 2000) is not available as a choice on this form. Others have reported this with IIS 4.0 and 5.0; I just wanted to say I have duplicated this in Windows 98SE using Personal Web Server. Line to reproduce: $mailsent = mail($recipient, $subject, "join $ListName, $EMail, $Name", "From: $EMail ($Name)"); The problem happens if the SMTP address in php.ini resolves to 127.0.0.1. I used "localhost" as well as other entries in my "hosts" file. After changing to an external mail server (and rebooting) it worked fine first try. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=5743

« previous php.dev (#32011) next »