By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,661 Members | 779 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,661 IT Pros & Developers. It's quick & easy.

Email scheduling through Cron and php

P: n/a
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 ,
Jan 8 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Tue, 08 Jan 2008 12:46:14 +0100, Rahul <ra******@gmail.comwrote:
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
Jan 8 '08 #2

P: n/a
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...

Jan 8 '08 #3

P: n/a
On Jan 8, 4:46 pm, Rahul <rahul...@gmail.comwrote:
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

Jan 10 '08 #4

P: n/a
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/
Jan 11 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.