10-23-2011, 02:03 PM
|
#1 (permalink)
|
|
The Acquainted
Join Date: May 2009
Posts: 178
Thanks: 9
|
PHP mail function
I currently have a live website running the php mail function which results in up to 50 emails being sent out when one form is submitted on the website. The code drawns if from a mysql database. It then loops through this array of email address and calls the php mail function to send out each email. Problem is on my live shared hosting environment it runs like a dog and the browser hangs for up to 10 seconds while this process runs. What is the solution. Without any major changes would it be better if i called the mail function once and passed in the array. Can i do this? Any help guys? CHeers.
|
|
|
|