faster than php mail() ?

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
cybercog
Forum Newbie
Posts: 20
Joined: Sat Oct 06, 2007 10:35 pm

faster than php mail() ?

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 ;)
Post Reply