I would like to make a script that would automatically generate a thank-you email to be sent out to first-time customers who visit my site. But I want to delay the email until approx noon on the day following their order. The only way I know to delay any action in PHP is sleep(), which will also hault any other script that calls that function.
I know this can be done as most major websites generate emails on a daily/weekly basis. Any tips?