The Mail () Function
Friday August 4, 2006
Sending an e-mail from PHP is a relatively simple process compared to some other languages. In fact, it's all taken care of in a single function: Mail (). This one function allows us to specify the recipient, subject, body, and headers (including from) all in one line.


great page, jsuty great! real informative
http://php.about.com/od/advancedphp/ss/mail_3.htm
64
How do you send html email msgs?
As a site admin for a free hosting service, we are now running into a serious issue with the PhP mail() function.
With so many users trying to send group e-mails to essentially hundreds of visitors to their site, the mail() function keeps timing out. Or, may send a few of the e-mails sometimes and not other times.
I have modified the PhP to allow for a longer “time out” period to no avail.
I am sure it is a combination of just hundreds of websites having hundreds of visitors in conjunction with the mailing function of notes to visitors of those sites.
But how can we address it?
Better server, updated PhP/MySQL/Apache software? Increased band width? What?
Thank You,
Scott