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 Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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 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.