Jump to content

Automatic mail


fesan

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.