NYCPHP Meetup

NYPHP.org

[nycphp-talk] mail function slows down page loading

Peter Lehrer pl at eskimo.com
Fri Sep 5 17:26:28 EDT 2003


Hi,
I am using the mail function on a page, and I noticed that the page tends to hang for a while when it loads, no doubt do to having to send an email. Is there a way to send the email in a separate process. Would placing the ampersand in the sendmail path in PHP.ini file work?

Right now, on the server, the path is:

/usr/sbin/sendmail -t -i 

Would it help to change the path to:

/usr/sbin/sendmail -t -i &

Also, could this be done through the ini_set() function instead of editing the actual PHP.ini file?

Peter Lehrer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030905/7ab0b427/attachment.html>


More information about the talk mailing list