Ajpalma Posted July 21, 2007 Share Posted July 21, 2007 Does anyone know how to send an email from a script when a specified date/time is reached automatically. I know how to send the email but how would the code run itself when the date is reached? Thanks, Alex Link to comment https://forums.phpfreaks.com/topic/61141-send-email-on-date/ Share on other sites More sharing options...
jaymc Posted July 21, 2007 Share Posted July 21, 2007 You will need to set a cron job However, if your website is active you can just use PHP so that when a certain page is accessed it will do the check then which kinda emulates a cron job However, if that page is not accessed for 20 minutes your email will be 20 minutes late! If you can do a cronjob, go down that route Link to comment https://forums.phpfreaks.com/topic/61141-send-email-on-date/#findComment-304264 Share on other sites More sharing options...
Ajpalma Posted July 21, 2007 Author Share Posted July 21, 2007 anyone know the easiest way to set up a cron job? Link to comment https://forums.phpfreaks.com/topic/61141-send-email-on-date/#findComment-304286 Share on other sites More sharing options...
marcus Posted July 21, 2007 Share Posted July 21, 2007 http://www.unixgeeks.org/security/newbie/unix/cron-1.html or if you have access to a cPanel, you can use the Cron Tab Manager Link to comment https://forums.phpfreaks.com/topic/61141-send-email-on-date/#findComment-304288 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.