Ruby on Rails email automation
March 19, 2007 9:05 AM   Subscribe

What is the best way to automatically send emails from a ruby on rails website on a schedule such as weekly or daily based on stored user info?
posted by srboisvert to Computers & Internet (4 answers total) 1 user marked this as a favorite
Write a method somewhere that sends the currently pending emails. Then set up a daily cron job that uses script/runner to execute that method.
posted by chrismear at 9:20 AM on March 19, 2007

You'd be better off with a cron job (or scheduled task on Windows), or (my preference) a scheduled job within the database that is (hopefully) storing your information.
posted by purephase at 9:31 AM on March 19, 2007

Here's how to use RailsCron to do just that.
posted by wackybrit at 9:32 AM on March 19, 2007 [1 favorite]

Response by poster: Related: Scheduling tasks in Ruby
posted by srboisvert at 3:26 AM on March 30, 2007

« Older Ratfilter: getting around   |   Where do I buy my first DSLR? Newer »
This thread is closed to new comments.