maddie2120 Posted September 22, 2011 Share Posted September 22, 2011 Hi could someone point me in the right direction, I'm trying to write an application that sends out reminder emails to clients who need to renew their qualifications online. Does anyone know of an automated script or one that could be adapted and used. Any help would be greatly appreciated. Maddie Quote Link to comment Share on other sites More sharing options...
delickate Posted September 22, 2011 Share Posted September 22, 2011 Hi, Store reminder date into database. on page load always check reminder date. if today date is equal to reminder date, shoot email. Let me know if there is still any issue. Thanks Quote Link to comment Share on other sites More sharing options...
TOA Posted September 22, 2011 Share Posted September 22, 2011 Hi, Store reminder date into database. on page load always check reminder date. if today date is equal to reminder date, shoot email. Let me know if there is still any issue. Thanks As delickate said, a db field is the way to go. His method for sending would work also, but what if no one opens the page that day? The email would never be triggered. IMO, the better way would be a cron job (cron jobs on apache, scheduled tasks on IIS- if my memory serves.) Just my 2 cents Quote Link to comment Share on other sites More sharing options...
maddie2120 Posted September 26, 2011 Author Share Posted September 26, 2011 Hi thanks for the help, yes I think the cron job idea is the way to go. Does anyone know of any scripts already out there that can be tweaked for individual use? Quote Link to comment Share on other sites More sharing options...
TOA Posted September 26, 2011 Share Posted September 26, 2011 Hi thanks for the help, yes I think the cron job idea is the way to go. Does anyone know of any scripts already out there that can be tweaked for individual use? A cron job runs a script. You would need to write the script to send the emails, and set up a cron job to run it. Most of the time this is done in an admin dashboard, but can be done in command line also. Quote Link to comment Share on other sites More sharing options...
maddie2120 Posted September 26, 2011 Author Share Posted September 26, 2011 Thanks - I was more interested in any php date scripts combined with cgi that could do the job, sorry I didn't make that clear Quote Link to comment Share on other sites More sharing options...
TOA Posted September 26, 2011 Share Posted September 26, 2011 Thanks - I was more interested in any php date scripts combined with cgi that could do the job, sorry I didn't make that clear Nope I don't. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.