sql - Send E-mail if date has passed using php -
i'm trying make online sign sheet system. wondering if when date of event had passed able send list of people have signed event (from mysql database)to e-mail, once? imagine have compare date start date, how stop re-sending more once?
i'm not asking written script idea of how go it.
many thanks
php cannot out-of-the-box, because cannot start periodic task executed every (or on specific point in time).
thus, have 2 options:
- start sending using external mechanism, such
cron
on linux. there functionality on every platform. means instruct program or os component visit particular page every, say, 5 minutes check if there new mail send. google php cron example. google php cron windows hints on how on windows. - you check if there new mail send whenever visits page reason. has obvious disadvantages, doesn't require set new system.
Comments
Post a Comment