Page 1 of 1

inserting time delay into mail function

Posted: Wed Jun 25, 2008 4:51 am
by MunsonBurner
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$from." <".$Email.">");


This is my mail function, which works fine and sends an email automatically to $ToEmail.

I would like to delay the sending of the email by 15 minutes to mimic a real person response as opposed to an automatic one.

Any ideas?

Cheers

Re: inserting time delay into mail function

Posted: Wed Jun 25, 2008 11:34 am
by Christopher
Store the email in a queue (such as a database table) with a timestamp and have a separate process (cron) send the emails based on the timestamp.