Mass Mailer Tutorial

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
jodan
Forum Newbie
Posts: 2
Joined: Fri Mar 28, 2008 12:07 pm

Mass Mailer Tutorial

Post by jodan »

:?:

Hello... I am new to SwiftMailer. I am a big fan of what I've read so far, but I cannot for the life of me find a tutorial on how to write a mass mailer script using SwiftMailer?
I would like to send to a list 5000+ (no more than 10000) emails long. Is this possible with SwiftMailer?

Any help would be greatly appreciated!
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Mass Mailer Tutorial

Post by Chris Corbyn »

It's possible and has been done many times. I don't think anyone's likely to provide you with copy & paste code though. That's not really what I'm about, I provide tools to do the work, but you still have to use the tools.

Have you tried anything so far? Are you reading from a database, a flat file, POST data?

The only generic response I can give so far as to make sure you batch the sending into managable chuks (i.e. send 50 * 100 batches, not 5000 emails). AntiFlood plugin can help here, but cron is probably the "best" choice tool for the job.
jodan
Forum Newbie
Posts: 2
Joined: Fri Mar 28, 2008 12:07 pm

Re: Mass Mailer Tutorial

Post by jodan »

Thanks for the reply. I will be reading from a database and sending as HTML.

I realize that asking for a complete solution is a question that will go unanswered... I was simply hoping for a simplified version of a Mass Mailer for an example... just the basics of the batches/cron so I don't cram my server up with emails. To be honest, I've been waiting a few months for the guide listed on this page: http://www.swiftmailer.org/wikidocs/ to be added (its there, but plain text without a link saying [TODO: A mass-maling tutorial]) but that doesn't seem like its going to happen, so I asked here in the forum.

Any help/guide/tips (such as what you've offered already) would be very helpful... I'm not looking for a complete copy and paste mass emailer solution. I would just like a simple version of how to use the batch w/ cron (even if its pseudo code) to make sure I head in the correct direction.

Thanks again for any help.
Post Reply