How to send an email on a particular date

Hello people, I am trying to create a application where a person can
set a reminder. for example a person may choose a date on which he
wants the email to be sent to his email id, on submitting this data a
cron job should start which would run daily and would deliver the
email on the particular day at particular time. How can i achieve
this? any help would be appreciated…
Thanks in advance.

Thanks for the suggestion fredrick…Can you please tell me is it
possible to do this using unix cronjob?? or do i need to use only a
plugin backgroundrb or rubycron and lots of others??I wanted to do
something like a file which is a .rb file inside crontab directory and
then daemon would be created which would run this script… Somethig
like this…I am not very sure how you can do this but do u have any
idea of doing it like this??

On Mar 17, 1:57 pm, Frederick C. [email protected]

On Mar 17, 8:43 am, dhaval [email protected] wrote:

Hello people, I am trying to create a application where a person can
set a reminder. for example a person may choose a date on which he
wants the email to be sent to his email id, on submitting this data a
cron job should start which would run daily and would deliver the
email on the particular day at particular time. How can i achieve
this? any help would be appreciated…
Thanks in advance.

Well it’s going to need to run a hell of a lot more often than daily.
You’re going to want some sort of background process (cronjob,
backgroundrb, long running ruby script, etc…). Then you’ll probably
have a table with what needs to be sent and when. Whenever your
background process wakes up you just check whether anything needs
sending now.

Fred

On 17 Mar 2008, at 09:23, dhaval wrote:

Thanks for the suggestion fredrick…Can you please tell me is it
possible to do this using unix cronjob?? or do i need to use only a
plugin backgroundrb or rubycron and lots of others??I wanted to do
something like a file which is a .rb file inside crontab directory and
then daemon would be created which would run this script… Somethig
like this…I am not very sure how you can do this but do u have any
idea of doing it like this??

Well cron will quite happily run ruby scripts if that’s what you’re
asking

Fred

Thanks for that. I actually meant that

On Mar 17, 3:08 pm, Frederick C. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs