Quote:
Originally Posted by tmedic
I have seen script examples for a delay in seconds but is it possible to delay a script for hours?
|
You don't want to do this, for a number of reasons. What you want to do is use a cron job to send out a list of queued up emails when the time is right.
Store the emails in a table with a "send on" time field, then run a cron job every 5 minutes (or whatever) to scan the table, match the "send on" times, and then send the emails.