php mail() too slow, workarounds?
Posted by: here
Posted on: 2006-07-16 18:19:00
php mail() function is too delayed to provide reliable notification following web purchase.
A client is attempting to sell a service requiring immediate action via their site. When a customer places an order, the information is recorded into a database and an email is sent to both the customer and provider using php's native mail() function. These mails have been arriving occasionally delayed - sometimes immediately; sometimes 6+ hours late! This seems to be par for the course with the current dh setup and has been consistetly erratic for the past 2 weeks.
The order shows up immediately in the database. Unfortunately, the provider has no idea there is a new order without constantly refreshing a database view!
Is there a way to eliminate the delay with mail()?
Is there an alternative to mail() which will eliminate the delay?
* PEAR:Mail : http://pear.php.net/package/Mail
* phpmailer: http://phpmailer.sourceforge.net/
* p3mailer: https://sourceforge.net/projects/p3mailer/
* email() from POSS : http://poss.sourceforge.net/email/index.php?type=Documentation
Does someone have a better idea than email as to how to contact about a new order. (maybe Jabber?)
Thanks
See also
* http://discussion.dreamhost.com/showflat.pl?Cat=&Board=forum_programming&Number=33763
. .. ...:herebox.org:... .. .