Re: PHP and schedules tasks/events

From: Date: Fri, 16 Apr 2010 21:15:00 +0000
Subject: Re: PHP and schedules tasks/events
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-304148@lists.php.net to get a copy of this message
On Apr 16, 2010, at 1:26 PM, Bastien Koert wrote:
Run a cronjob at midnight and send the email. Track who it got sent to, so you don't duplicate it. Easy peasy!
This is fine if the email is to be sent at midnight. I am looking for more refinement. For example: A user signs up for an event - 4/16/2010 @ 10:45am There is an option: Send me a reminder email X minutes/hours/days/weeks/months/years prior to the Event. so: 30 minute(s) = email sent at 4/16/2010 @ 10:15am 2 hour(s) = email sent at 4/16/2010 @ 8:45am 3 day(s) = email sent at 4/13/2010 @ 10:45am 1 week(s) = email sent at 4/9/2010 @ 10:45am 1 month(s) = email sent at 3/16/2010 @ 10:45am 1 year(s) = email sent at 4/16/2009 @ 10:45am This is really what I need... Don Wieland D W D a t a C o n c e p t s ~~~~~~~~~~~~~~~~~~~~~~~~~ donw@dwdataconcepts.com Direct Line - (949) 305-2771

« previous php.general (#304148) next »