Automatic e-mail sender
Posted 14 August 2012 - 12:07 AM
On the last project I used modified version of http://www.yiiframew...on/simplemailer with my own Swift Mailer implementation (instead of mail() function in that extension) in conjunction with Observer class (which handles events that require email-sending jobs) and like this approach so far.
Posted 22 August 2012 - 08:43 PM
After counting 10 months, his/her sponsorship will expire on March 2012.
We must therefore receive an automatic e-mail reminder by the end of January 2012 that the sponsorship of this particular child will expire on March 2012.
Sample e-mail text: “This is to inform you that the sponsorship of ______ will soon expire on March 2012.”
Once we receive this e-mail reminder, we will contact the sponsor ASAP.
If sponsor decides to renew the sponsorship, then the 10-month countdown begins on June 2012 (we exclude April and May).
The next time we will receive another e-mail reminder for this child will be on March 2013.
Posted 24 September 2012 - 01:17 AM
Create a console app and a cronjob that runs it daily. In your console app, search the DB for records expiring and build your email template for any that meet your rules.
Can you please give me some other options? Our project is hosted by our professor, I don't know how will I deal with him about the console app.