Page 1 of 1

faster than php mail() ?

Posted: Sat Oct 06, 2007 10:45 pm
by cybercog
I remember reading about swift and why it's faster than mail() but now I can't remember where?

I've got about 15K newsletters to send (and yes I've read the docs about "I've got ##### of emals to send, best way?).

But I'm not that experienced with background processes and cron jobs.

Right now I'm using mail() in a while loop that reads a MySQL recordset.

It prints out the address of each person being sent to and they seem to like that.

So if I'm lazy and I use batchSend in my while loop, will I see an increase in performance without using the cron job approach?

Thanks

Posted: Sat Oct 06, 2007 11:27 pm
by Chris Corbyn
It's not possible to answer this question with one statement. mail() is not a solution in itself since you'd then need to build compliant headers, perform encoding, truncate line lengths etc.

Speed varies significantly depending upon which connection you use. SMTP is slowest at runtime but fastest from client to recipient. Sendmail and NativeMail (the mail() function) are fastest at runtime. When using mail() the speed varies vastly between windows and UNIX-like systems since they use completely different methods for delivery ;)