Sending emails on user specific scheduled times


#1

Hello,

I am building an application in which I have to send recurring emails
and I am using actionmailer to send one time emails and it is working
fine. Now, I need to set up user specific dates/time and mails should be
send at those times. Does any body have any idea of how should I do it ?
I am not able to understand how to setup cron jobs from ruby
application. Any help would be appreciated.

Thanks.


#2

What about Rufus Scheduler?

http://www.railsinside.com/misc/234-scheduler-simple-task-scheduling-from-rails-apps.html


#3

You could use a cron job that runs a rake task every hour, or you
could use the Starling/Workling configuration to poll for emails that
are scheduled to be sent out. You should watch the Railscasts below:

http://railscasts.com/episodes/127-rake-in-background
http://railscasts.com/episodes/128-starling-and-workling

Give it a shot!

Thanks,
Tom

On Mar 20, 8:37 am, Intern ruby removed_email_address@domain.invalid