Forum: Ruby on Rails script/runner to send e-mails

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.
Jason S. (Guest)
on 2006-06-07 20:27
First, I have been learning, and loving, Ruby on Rails for a few weeks
now, and a huge part of my initial success ans enjoyment is due to this
forum... so for that, thank you.  I hope to contribute regularly.

Ok, I know there are related threads, but I want to get a confirmation
or denial that the workflow I am about to embark on is correct.

I have a db of e-mail addy's, messages and datetime's.  I want to get a
script running that will send e-mails, to the appropriate e-mail
address, at the datetime specified.

From what I understand the script/runner command can execute methods in
the model.  If that's true, do I need to write a function, in my model,
that retrieves the 'expired' messages, and uses ActionMailer to send
them out?  All in the model?

Something about that just doesn't seem right... but perhaps it is.  Any
comments arre greatly appreciated!

-stirman
This topic is locked and can not be replied to.