Hello,
WHat is the best way to send a newletter for 4000 emails
1. get all the mail in one select and use batch send
or
2. use limit to get X number of records and run the cron every 5 minutes
Are there better options?
Thank you
best way to send newsletter
Moderators: Chris Corbyn, General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: best way to send newsletter
Anything over 100 emails, Cron. This has been asked many times before 
Re: best way to send newsletter
Both are in a cron. What I am saying is if I should use a select limit or let swiftmailer get all of them at once?
I guess you are saying use the limit?
I guess you are saying use the limit?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: best way to send newsletter
Ah I see. Definitely limit the number of emails in any single batch yes. You'll scale far better if you apply limits.
Re: best way to send newsletter
what about the Throttler Plugin? Why not load the 3000 mails and then use this plug in? Pros and Cons?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: best way to send newsletter
Well, the throttler in combination with the anti-flood plugin will work (or even just anti-flood alone).yacahuma wrote:what about the Throttler Plugin? Why not load the 3000 mails and then use this plug in? Pros and Cons?
Pro's: It's simple to write and manage.
Con's: The load caused by the script may be high. If the script dies, your entire batch does. A cron would get a second (read, multiple) chances.
Don't get me wrong. AntiFlood and Throttler were developed for that exact reason, but I'm an honest guy and I have to admit that I'd personally choose cron over my own plugins
PHP (not swift) is known to leak memory too when it's run for a long time unfortunately.
Re: best way to send newsletter
Thank a lot. I will go with the limit route and run the cron every 5 minutes.
Maybe load 500 mails per batch.
Maybe load 500 mails per batch.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: best way to send newsletter
I think that's reasonable
Though I'd double that with the anti-flood plugin to restart the connection at each 100 emails (since 100 is often a limit-per-connection).