PHP 4.0 Bug #5743: mail() hangs if SMTP server is localhost
| From: | steve at srtware dot com | Date: | Sun, 23 Jul 2000 08:54:29 +0000 |
| Subject: | PHP 4.0 Bug #5743: mail() hangs if SMTP server is localhost | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-25546@lists.php.net to get a copy of this message | ||
From: steve@srtware.com
Operating system: Windows 98 SE
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Reproduceable crash
Bug description: mail() hangs if SMTP server is localhost
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.