Re: Run Process in back ground

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Per Jessen wrote:
Richard Kurth wrote:

Is there a way that I can call a function that will send an email and
then move on redirecting to another website without having to what for
the email to send?
SendEmail($memberemail,$MailFrom,$MailHost);
header("Location:http://domain.com";);

Yes:
mail( .... );
header("Location:http://domain.com";);


mail() only takes as long as it takes to drop the mail in your local
filesystem.

Not necessarily. As discussed at length on this list last month sendmail (or a substitute) may try to deliver the message rather than passing it to a local MTA.

Richard: If sending the mail is taking a long time you need to look at exactly how you're sending it. As Per points out the fastest way to send email is to dump it to a local MTA. You should be able to configure your system to do that pretty easily, but if you don't have that kind of access either change hosts or look at poking the message into an outgoing queue you implement yourself (file or db-based with a cron job to periodically process it).

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux