Page 1 of 1

BatchSend - detailed error results?

Posted: Wed Oct 17, 2007 1:19 am
by EoN
Hi all,

Again - thanks for a fantastic product - Swift Mailer is superb :)

Just a question - is there a way to get specific results back from batchSend() to find out which emails worked and which didn't?

Basically my scenario is this - initially i had a simple loop that would run mail() - and if successful would update a database row accordingly. basically this meant if anything fell over halfway through i could see exactly where it got up to.

When i started using swift mailer, i re-structured the entire thing to use batchSend - and only after i completed it did i realise i probably should have stuck with the swift individual ->send() method.... but now that i've made the switch - is there anyway i can get the results of which email sent & which didnt so i can try to update my database accordingly? Will save me having to revert back to the 'one by one' method.

Thanks!

EoN

Posted: Wed Oct 17, 2007 2:07 am
by chuckl

Posted: Thu Oct 18, 2007 12:09 am
by EoN
thank you! that worked perfectly.

I've got to say - Swift Mailer has been one of the most streamlined - easy to follow, useful, most efficient class/libraries/scripts I've used. THANK YOU! :)

Every feature I've thought to myself 'it'd be great if it could do this' - I'll look in the doco or on the forums - and they all exist! It's great! Keep up the good work :)