I am developing a RoR app for managing community information and would
like to have an summary of current events and interests mailed out
monthly. The tickler email would be a basic summary of items and links
back to the site.
I would like to schedule the email delivery dates and have the app send
out email to registered users that opted for this service. Once
scheduled, a monthly tickler would be sent out automatically.
Is there a RoR way of scheduling tasks like this? I’m considering
setting up a cron job and kicking things off that way but would like to
have this integrated into the app as much as possible. My motivation is
to keep the business logic together, since emails could also be kicked
off manually rather than scheduled.
Is there a RoR way of scheduling tasks like this? I’m considering
setting up a cron job and kicking things off that way but would
like to
have this integrated into the app as much as possible. My
motivation is
to keep the business logic together, since emails could also be kicked
off manually rather than scheduled.
Look at the Ruby no Rails Cron Plugin for starters.
On Sun, Feb 19, 2006 at 01:04:17AM +0100, Mike L. wrote:
Is there a RoR way of scheduling tasks like this? I’m considering
setting up a cron job and kicking things off that way but would like to
have this integrated into the app as much as possible. My motivation is
Absolutely use cron - it’s job is keeping track of time
However, the actual mailing could be kicked off by asking cron to call a
web page, e.g. “wget http://server/railsapp/monthlymailing”, and
therefore it’s your app that does the work.
-jim
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.