Re: PHP and schedules tasks/events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx
Direct Line - (949) 305-2771

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux