Email scheduling through Cron and php
Email scheduling through Cron and php
am 08.01.2008 12:46:14 von rahul sinha
Hello All,
I have come accross a very interesting as well as a very complex
scenario with my current project. My worry is the scheduling of email
messages and execution of that based on the cron jobs.
For this I am using cron .Suppose Cron is set to execute a file after
every five minutes .It executes and returns all the details of
scheduled emails suppose 10.
Now my problem is how can I synchronize this with the current date
and time so that each and every messge is being sent at correct date/
time.
Thanks ,
Re: Email scheduling through Cron and php
am 08.01.2008 12:49:45 von luiheidsgoeroe
On Tue, 08 Jan 2008 12:46:14 +0100, Rahul wrote:
> Hello All,
> I have come accross a very interesting as well as a very complex
> scenario with my current project. My worry is the scheduling of email
> messages and execution of that based on the cron jobs.
> For this I am using cron .Suppose Cron is set to execute a file after
> every five minutes .It executes and returns all the details of
> scheduled emails suppose 10.
> Now my problem is how can I synchronize this with the current date
> and time so that each and every messge is being sent at correct date/
> time.
Store the time to be sent with the email to be sent, and only send those
in need of sending? If you want more details, we'll have to know how
scheduled mails are stored.
--
Rik Wasmus
Re: Email scheduling through Cron and php
am 08.01.2008 13:07:52 von Courtney
Rahul wrote:
> Hello All,
> I have come accross a very interesting as well as a very complex
> scenario with my current project. My worry is the scheduling of email
> messages and execution of that based on the cron jobs.
> For this I am using cron .Suppose Cron is set to execute a file after
> every five minutes .It executes and returns all the details of
> scheduled emails suppose 10.
> Now my problem is how can I synchronize this with the current date
> and time so that each and every messge is being sent at correct date/
> time.
>
> Thanks ,
Not sure what the problem is.
If its standard mails to be sent at standard times, edit the cron script.
If its a message to be sent once at a particular time, use the 'at '
command.
Not sure where PHP comes into this either...
Re: Email scheduling through Cron and php
am 10.01.2008 07:38:29 von rahul sinha
On Jan 8, 4:46 pm, Rahul wrote:
> Hello All,
> I have come accross a very interesting as well as a very complex
> scenario with my current project. My worry is the scheduling of email
> messages and execution of that based on the cron jobs.
> For this I am using cron .Suppose Cron is set to execute a file after
> every five minutes .It executes and returns all the details of
> scheduled emails suppose 10.
> Now my problem is how can I synchronize this with the current date
> and time so that each and every messge is being sent at correct date/
> time.
>
> Thanks ,
Big thanks to all.Anyhow I have managed to sort out this problem.Now
I am testing with all scenario
and will get back with my logic as soon I end up.
Thanks
Rahul
Re: Email scheduling through Cron and php
am 11.01.2008 02:27:49 von Manuel Lemos
Hello,
on 01/08/2008 09:46 AM Rahul said the following:
> Hello All,
> I have come accross a very interesting as well as a very complex
> scenario with my current project. My worry is the scheduling of email
> messages and execution of that based on the cron jobs.
> For this I am using cron .Suppose Cron is set to execute a file after
> every five minutes .It executes and returns all the details of
> scheduled emails suppose 10.
> Now my problem is how can I synchronize this with the current date
> and time so that each and every messge is being sent at correct date/
> time.
It seems you want something like this class. It stores scheduled
messages in a database for later delivery eventually with cron:
http://www.phpclasses.org/newsletter
--
Regards,
Manuel Lemos
PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/