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 Link to comment https://forums.phpfreaks.com/topic/247643-trying-to-write-an-application-that-sends-out-reminder-emails/ 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 Link to comment https://forums.phpfreaks.com/topic/247643-trying-to-write-an-application-that-sends-out-reminder-emails/#findComment-1271715 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 Link to comment https://forums.phpfreaks.com/topic/247643-trying-to-write-an-application-that-sends-out-reminder-emails/#findComment-1271786 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? Link to comment https://forums.phpfreaks.com/topic/247643-trying-to-write-an-application-that-sends-out-reminder-emails/#findComment-1272823 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. Link to comment https://forums.phpfreaks.com/topic/247643-trying-to-write-an-application-that-sends-out-reminder-emails/#findComment-1272882 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 Link to comment https://forums.phpfreaks.com/topic/247643-trying-to-write-an-application-that-sends-out-reminder-emails/#findComment-1272901 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. Link to comment https://forums.phpfreaks.com/topic/247643-trying-to-write-an-application-that-sends-out-reminder-emails/#findComment-1272955 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.