# Sending Scheduled Email Ticklers

**URL:** <https://www.ruby-forum.com/t/sending-scheduled-email-ticklers/70245>\
**Category:** Rails\
**Created:** [February 19, 2006, 1:04am UTC](https://www.ruby-forum.com/t/sending-scheduled-email-ticklers/70245 "2006-02-19T01:04:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlopke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Post date:** [February 19, 2006, 1:04am UTC](https://www.ruby-forum.com/t/sending-scheduled-email-ticklers/70245/1 "2006-02-19T01:04:17Z")

</div>

Hi All,

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.

Thanks,  
Mike L.

---

<div class="post-metadata">

**Author:** ![mlopke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Post date:** [February 19, 2006, 1:51am UTC](https://www.ruby-forum.com/t/sending-scheduled-email-ticklers/70245/2 "2006-02-19T01:51:45Z")

</div>

On 18-Feb-06, at 4:04 PM, 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  
> 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.

Best Regards,  
Warren N…  
GNU ([http://www.gnu.org.in](http://www.gnu.org.in))

---

<div class="post-metadata">

**Author:** ![mlopke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Post date:** [February 19, 2006, 2:24am UTC](https://www.ruby-forum.com/t/sending-scheduled-email-ticklers/70245/3 "2006-02-19T02:24:57Z")

</div>

As Warren mentioned, I wrote a RailsCron plugin for tasks like this.  
The svn repository is:

[http://svn.kylemaxwell.com/rails\_cron/trunk](http://svn.kylemaxwell.com/rails_cron/trunk)

Also, there’s some helpful snippets, including an EmailQueue, on my  
blog at [www.kylemaxwell.com](http://www.kylemaxwell.com).

If you have and questions/comments/feedback, please post it on this  
list, which I read regularly.

Good luck!  
Kyle

---

<div class="post-metadata">

**Author:** ![mlopke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Post date:** [February 19, 2006, 11:19pm UTC](https://www.ruby-forum.com/t/sending-scheduled-email-ticklers/70245/4 "2006-02-19T23:19:33Z")

</div>

Kyle M. wrote:

> As Warren mentioned, I wrote a RailsCron plugin for tasks like this.  
> The svn repository is:
> 
> [http://svn.kylemaxwell.com/rails\_cron/trunk](http://svn.kylemaxwell.com/rails_cron/trunk)
> 
> Also, there’s some helpful snippets, including an EmailQueue, on my  
> blog at [www.kylemaxwell.com](http://www.kylemaxwell.com).
> 
> If you have and questions/comments/feedback, please post it on this  
> list, which I read regularly.
> 
> Good luck!  
> Kyle

Thanks. I’ll let you know how things go.

Regards,  
Mike

---

<div class="post-metadata">

**Author:** ![mlopke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Post date:** [February 19, 2006, 6:45am UTC](https://www.ruby-forum.com/t/sending-scheduled-email-ticklers/70245/5 "2006-02-19T06:45:43Z")

</div>

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](http://server/railsapp/monthlymailing)”, and  
therefore it’s your app that does the work.

-jim
