Swiftmailer Code Examples for Batch Mail using Cron?
Posted: Tue Jan 29, 2008 3:35 pm
Hello Everyone,
I just found out about Swiftmailer about Noon Today. The past 4 Hours I've been combing this forum trying to absorb as MUCH information as I can. I'm not the most saavy php programmer, in fact I'm not one at all. But I do understand SOME of the concepts, at least enough to implement. However what helps me most is examples. So I'm asking a few more experienced users to help me out a bit?
I Have a E-Mail list of about 6000 Names. 3-4 Times a month, I'd like to send out an HTML Email to these addresses. I've read the docs and the forums and understand that BatchSend() along with the Throttler Plugin can make this possible. However, I'm COMPLETELY confused as to how to create a CRON script to pull in each email in small batches. Can someone post an example of how to setup this cron script? I've never used Crontab in the past, but do have a dedicated server and I'd like to learn how.
How do I setup cron to pull the emails from the DB? How do I setup the DB? I can setup a db table with 2 columns; Name and Email, but is it that simple? How do I tell Swiftmailer to connect to this DB, and ultimately tell the cron script to pull those emails into Swiftmailer?
I know these probabaly are all BASIC questions. But I'm Extremly excited about LEAVING PhpMail and moving over to Swiftmailer. Go easy on me, I'm just looking to learn! I'd appreciate any examples and explanations, I'll be checking the forums often.
B.regards,
Nick
I just found out about Swiftmailer about Noon Today. The past 4 Hours I've been combing this forum trying to absorb as MUCH information as I can. I'm not the most saavy php programmer, in fact I'm not one at all. But I do understand SOME of the concepts, at least enough to implement. However what helps me most is examples. So I'm asking a few more experienced users to help me out a bit?
I Have a E-Mail list of about 6000 Names. 3-4 Times a month, I'd like to send out an HTML Email to these addresses. I've read the docs and the forums and understand that BatchSend() along with the Throttler Plugin can make this possible. However, I'm COMPLETELY confused as to how to create a CRON script to pull in each email in small batches. Can someone post an example of how to setup this cron script? I've never used Crontab in the past, but do have a dedicated server and I'd like to learn how.
How do I setup cron to pull the emails from the DB? How do I setup the DB? I can setup a db table with 2 columns; Name and Email, but is it that simple? How do I tell Swiftmailer to connect to this DB, and ultimately tell the cron script to pull those emails into Swiftmailer?
I know these probabaly are all BASIC questions. But I'm Extremly excited about LEAVING PhpMail and moving over to Swiftmailer. Go easy on me, I'm just looking to learn! I'd appreciate any examples and explanations, I'll be checking the forums often.
B.regards,
Nick