[nycphp-talk] mail function slows down page loading
Peter Lehrer
pl at eskimo.com
Fri Sep 5 17:33:27 EDT 2003
it looks like the sendmail path can only be changed in php.ini or httpd.conf.
peter
----- Original Message -----
From: Peter Lehrer
To: NYPHP Talk
Sent: Friday, September 05, 2003 5:26 PM
Subject: [nycphp-talk] mail function slows down page loading
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
------------------------------------------------------------------------------
_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030905/4e5eb5b7/attachment.html>
More information about the talk
mailing list