#22344 [Opn->Fbk]: mail() times out, then sends the mail successfully

From: Date: Sun, 23 Feb 2003 10:40:18 +0000
Subject: #22344 [Opn->Fbk]: mail() times out, then sends the mail successfully
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33992@lists.php.net to get a copy of this message
ID: 22344 Updated by: sniper@php.net Reported By: mellis at ellisandgrant dot com -Status: Open +Status: Feedback Bug Type: Mail related Operating System: Windows 2000 Pro PHP Version: 4.3.1 New Comment: Does adding set_time_limit(60); help? Previous Comments: ------------------------------------------------------------------------ [2003-02-20 19:16:23] mellis at ellisandgrant dot com Humble apologies if this turns out to be a configuration error, but I can't find any reference using the bug search page or a general search with Google. Script to reproduce problem: <?php mail('mellis@frogwing.com', 'Times out', 'But does get sent!'); ?> Fatal error: Maximum execution time of 30 seconds exceeded in c:\program files\apache group\apache\htdocs\mailtest.php on line 1 Environment: php 4.3.1 Win32 binaries running as apache module SMTP smtp.ellisandgrant.com SERVER_SIGNATURE <ADDRESS>Apache/1.3.27 Server at localhost Port 80</ADDRESS> SERVER_SOFTWARE Apache/1.3.27 (Win32) PHP/4.3.1 Notes: 1. The SMTP box is a linux box on my LAN. Very unbusy with a fast cable modem connection to the outside world, ie connecting and DNS cannot possibly be taking more than 1 or 2 seconds. 2. All other php functions and behaviors seem fine. 3. Watching the clock and looking at the timestamp on the email, it seems as though it is being sent just AFTER the script times out. 4. mail() worked fine when I ran php as cgi. Thanks, Mike Ellis ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22344&edit=1

« previous php.bugs (#33992) next »