fesan Posted January 14, 2009 Share Posted January 14, 2009 Hi.... Is there a way to automatically send mail if a statement is true without someone visiting the site? For an example: You should check your mail once every week. But after a week you haven't checked your mail, so the page sends you a message that reminds you to do this! the mail example was an bad example. since it doesent help to send a mail if you haven't checked your mail.. he he... but this is not what the reminder is going to remind the user about! I also see now that this is a very good potential to a spam robot, but it is not! If you guys believe me... Link to comment https://forums.phpfreaks.com/topic/140839-automatic-mail/ Share on other sites More sharing options...
flyhoney Posted January 14, 2009 Share Posted January 14, 2009 I think what you're looking for is a CRON job. CRON allows you to schedule scripts to run at certain times and with certain frequencies. So you could have a CRON job that runs every Sunday at 12:00 am and checks a database to see if a user has checked their mail. http://en.wikipedia.org/wiki/Cron Link to comment https://forums.phpfreaks.com/topic/140839-automatic-mail/#findComment-737150 Share on other sites More sharing options...
rhodesa Posted January 14, 2009 Share Posted January 14, 2009 or Scheduled Jobs if your server is running Windows. either way, create a PHP script, that when it's run does what you want, then use Cron/Scheduled Jobs to execute it every day. Link to comment https://forums.phpfreaks.com/topic/140839-automatic-mail/#findComment-737155 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.