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