NYCPHP Meetup

NYPHP.org

[nycphp-talk] mail function slows down page loading

Preston-Campbell brian at preston-campbell.com
Fri Sep 5 17:40:58 EDT 2003


IIRC in Perl
/usr/sbin/sendmail -q
will queue the message.  It may make a difference -- I may also be blowin 
smoke.

Brian

On Friday 05 September 2003 05:26 pm, Peter Lehrer wrote:
> 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




More information about the talk mailing list