ssmith Posted July 13, 2009 Share Posted July 13, 2009 Hi. Basically, im thinking of having a form that after submition sends an email to the author BUT the email is delayed and not sent until 2 weeks after the submition date. Does anyone know how to delay sending an email? thank you in advance. Quote Link to comment https://forums.phpfreaks.com/topic/165780-how-to-delay-sending-an-email/ Share on other sites More sharing options...
.josh Posted July 13, 2009 Share Posted July 13, 2009 Store the date for when you want to send it in a table or flatfile. Write a script that queries the db or searches the flatfile for current date(s), and mails relevant stuff based on that. Setup a cronjob to run the script every x amount of time. Quote Link to comment https://forums.phpfreaks.com/topic/165780-how-to-delay-sending-an-email/#findComment-874467 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.