Page 1 of 1

Mass Mailer Tutorial

Posted: Fri Mar 28, 2008 12:11 pm
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!

Re: Mass Mailer Tutorial

Posted: Sat Mar 29, 2008 12:36 pm
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.

Re: Mass Mailer Tutorial

Posted: Tue Apr 01, 2008 1:43 pm
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.