RE: [PHP] mail() function 30minute delay??

From: Date: Thu, 12 Jul 2001 00:43:57 +0000
Subject: RE: [PHP] mail() function 30minute delay??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57522@lists.php.net to get a copy of this message
Sendmail should (by default) attempt to send the mail immediately... If it can't deliver it on that attempt, then it should be queued to send again later (30 mins?)... Unless you've configured sendmail differently, it should attempt to deliver as soon as the mail is sent from PHP. You can reduce the queue time of sendmail when you run it... For example, on my system, it's: # /usr/sbin/sendmail -bd -q15m -bd --- Tells sendmail to enter daemon mode -q15m --- Tells sendmail to processes the queue every 15 minutes. If you can't fix sendmail, your alternatives are: 1) Connect to an SMTP server directly using fsockopen() and send the mail that way (I don't recommend it) 2) Reconfigure php.ini to use a different MTA (mail transport agent) Anyone else have additional suggestions? -----Original Message----- From: Ben Rigby [mailto:ben@akimbodesign.com] Sent: Wednesday, July 11, 2001 7:54 PM To: php-general@lists.php.net Subject: [PHP] mail() function 30minute delay?? hi. i'm using the mail() function to send email from a PHP script on a UNIX system. sample code is: $result=mail ($mail_to, $mail_subject, $mail_body, $mail_headers); and it seems to be placing the mail in the sendmail queue which gets sent every 30 mintues. is there a PHP mail() option or another mailing command that can speed up this time? or, does this sound like a sendmail setting? thanks for any help! ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#57522) next »