fazzfarrell Posted January 27, 2009 Share Posted January 27, 2009 I am looking to find a decent tutorial or software that will run on a php based site to send an automatic email when a user creates an account. Then 2 days later another email will be auomaticaly sent and so on..can any one help? thanks Link to comment https://forums.phpfreaks.com/topic/142611-email-autoresponder/ Share on other sites More sharing options...
dvd420 Posted January 27, 2009 Share Posted January 27, 2009 Hi, Wenever you are executing the query to insert data into table, call your mailer script. To send notification after 2 days, schedule a cron job Link to comment https://forums.phpfreaks.com/topic/142611-email-autoresponder/#findComment-747469 Share on other sites More sharing options...
gevans Posted January 27, 2009 Share Posted January 27, 2009 You're lokking at using a few techniques here. Firstly to send an email when someone registered is simple, you just need to use the mail() function at the end of the register process. For sending an email every two days you'll need to run a cron job (linux). When you register a user store a MySQL DATETIME or timestamp so you know when they registered. Your cron will call a script that will check when the user registered, if necesary call the mail() function and send an email. (As above) Link to comment https://forums.phpfreaks.com/topic/142611-email-autoresponder/#findComment-747471 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.