April 9th, 2000, 11:04 PM
I have a page that includes a mail() function. It seems to wait for the message to be delivered rather than just putting it in the queue and moving on.
php3.ini contains sendmail_path /usr/sbin/sendmail -odq
sendmail starts at boot with sendmail -bd -q1h
The function works (I get the email), but I have to wait 30 seconds or so for the mail to be delivered before the browser displays the page. I'd rather just put the email in a queue and have the server send it when it gets a chance.
What am I doing wrong?
April 10th, 2000, 10:32 PM
Try using sendmail -t (the default) in php3.ini
April 11th, 2000, 08:28 PM
I changed sendmail_path in /usr/local/lib/php3.ini to /usr/sbin/sendmail -t
and restarted apache. It still waits instead of queueing.
I see no difference between
"sendmail_path = /usr/sbin/sendmail -odq"
and "sendmail_path = /usr/sbin/sendmail -t"
phpinfo() shows "Sendmail Path to sendmail: /usr/sbin/sendmail -t"
Are there other php variables from phpinfo() I should check out?
April 12th, 2000, 07:49 PM
You could be facing some weird sendmail problem and I'm not a sendmail guru in any way (nor I want to be). You could try using postfix instead of sendmail and that's what I have been using so I can't say much about sendmail anyway.
any findings on this yet?
i have 2 (RH6) linux, quite similarly configured (with apache/php3/mysql)
one of them sends php mail almost instantenously, and the other one takes about 30 seconds
i didn't change any sendmail setting, and both of them use default php.ini
i suspect something else cause the problem...please let me know if you know what is it thanks...
i've had exactly the same problem. (did a temporal solution with invocation of a perl-script)
in case you find the answer, please post it here.
...Tommyknockers, Knocking On Your Door...