BatchSend vs Send

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
EoN
Forum Newbie
Posts: 22
Joined: Thu Oct 11, 2007 5:57 am

BatchSend vs Send

Post by EoN »

Hi guys,

Ok this problem is a little tricky to describe but I'll do my best.

Previously I have been using batchSend method with the decorator plugin to send a group of emails with the same 'body', but some fields like 'first name, last name' were replaced by decorator etc. That's worked ok up until now.

I have recently changed the system to instead queue messages, and it's only now that I've got to the last point that I realise I'm presented with a problem. The system sends out different emails, and the queue that is returned will not necessarily have a 'type' of email all grouped together. So for example whereas before I might have done 100 emails of TYPE_A, then 200 emails of TYPE_B (manually as two seperate batch jobs), now the queue might return 3 x TYPE_A, 1 x TYPE_B, 10 x TYPE_C etc (where TYPE_* are different email/bodies). So this won't work properly with the BatchSend/decorator method AFAIK.

So I guess the only option left is to revert back to sending individual emails one by one. (Unless any other ideas?) So I guess my question comes down to this: Is there any performance issues or 'reasons why I shouldnt revert back to send? Is there any drawbacks with this method? Performance? Spam-factor? etc

Thanks,

EoN
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: BatchSend vs Send

Post by Chris Corbyn »

Can't you change the SQL which pulls mail from the queue so that they come through in logical batches? :)
Post Reply