View Single Post
Old 11-27-2007, 02:38 AM   #18 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Quote:
Originally Posted by EyeDentify View Post
For very large e-mail sendning quantitys you should use a email class like php mailer. http://phpmailer.codeworxtech.com/

Because as i understand the mail() function opens a connection and closes it on every call. That might be of server load concern later on.

But i guess a few hundred emails is going the be allright but one would have to see. Optionally you could work in a cue system of some sort to keep the load down, maybe a delay between loops or something. Otherwise a email class would be good.
I didn't realise that the mail function behaved in that way, but I have noticed its performance to be rather inadequate for large batches of emails, as you say.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote