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:[EMAIL PROTECTED]] 
Sent: Wednesday, July 11, 2001 7:54 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to