Forum: Ruby on Rails Scheduling E-mail Alerts

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
409b1ab791494a92a5743f3d6bb467b5?d=identicon&s=25 MarkusW (Guest)
on 2008-12-08 18:43
(Received via mailing list)
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
4c438a80fc30661ad619ea177cf9cbd0?d=identicon&s=25 Freddy Andersen (Guest)
on 2008-12-08 18:59
(Received via mailing list)
This topic is locked and can not be replied to.