# Scheduling E-mail Alerts

**URL:** <https://www.ruby-forum.com/t/scheduling-e-mail-alerts/155146>\
**Category:** Rails\
**Created:** [December 8, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/scheduling-e-mail-alerts/155146 "2008-12-08T18:43:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkusW](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarkusW](https://www.ruby-forum.com/u/MarkusW)\
**Post date:** [December 8, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/scheduling-e-mail-alerts/155146/1 "2008-12-08T18:43:04Z")

</div>

Greetings RoR:Talk,

I’m in the process of developing a web application for my company.  
It’s a simple app developed to alleviate a portion of manual tasks for  
our administration department. It’s core function will be to send an e-  
mail alert to a user (or distribution list) in our administration  
department when an item’s warranty date is near expiration.

Now, what I have developed so far is that a CUSTOMER has many ITEMS.  
These ITEMS belong to a CUSTOMER. An ITEM has a warranty end date.  
This structure is already in place and functioning correctly.

The next step I would like to take is to implement an automated  
mailer. What I am unsure of is how to create a script of some sort  
that will run daily, figure out which customer’s items are nearing  
expiration, then e-mail our internal user. I’d say a good time frame  
for when the e-mail is sent would be a week from expiration. That  
could change, but a week would be good for now. This gives our staff  
enough time to gather the required materials for the specific customer  
and contact them about renewal.

Can all of this be handled with ActionMailer?

- Mark

---

<div class="post-metadata">

**Author:** ![MarkusW](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarkusW](https://www.ruby-forum.com/u/MarkusW)\
**Post date:** [December 8, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/scheduling-e-mail-alerts/155146/2 "2008-12-08T18:59:28Z")

</div>

Hi,  
Watch these and I’m sure you will find a solution to your problem…

> **[\#129 Custom Daemon - RailsCasts](http://railscasts.com/episodes/129-custom-daemon)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

> **[\#128 Starling and Workling - RailsCasts](http://railscasts.com/episodes/128-starling-and-workling)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

> **[\#127 Rake in Background - RailsCasts](http://railscasts.com/episodes/127-rake-in-background)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.
