Connecting Swiftmailer up to DB
Posted: Tue Mar 13, 2007 1:31 pm
Hi
I installed Swiftmailer 3 yesterday on PHP4 without too much issue (I'm a bit of a Noobie - hence the name!). There was a lot of jumping up and down and cheering I can tell you (I'm easily pleased).
I'd like to connect up the Batch Send with Attachment version to my MySQL DB to send out a Newsletter - what's the best way of doing that?
Dont suppose it's as simple as
Also - I noticed this thread: viewtopic.php?t=64614 about an mid-send error issue, should I change that chunk of code in the version I'm running (if so... which file does it go in?).
Thanks for your help.
I installed Swiftmailer 3 yesterday on PHP4 without too much issue (I'm a bit of a Noobie - hence the name!). There was a lot of jumping up and down and cheering I can tell you (I'm easily pleased).
I'd like to connect up the Batch Send with Attachment version to my MySQL DB to send out a Newsletter - what's the best way of doing that?
Dont suppose it's as simple as
Code: Select all
$recipients =& new Swift_RecipientList();
$recipients->addTo($recipient_emails);Thanks for your help.