Displaying 1 result from an estimated 1 matches for "deliver_my_email_message".
2008 Mar 17
2
Dynamic actions and views
...in the db. These are email messages
that I have to send based on some condition. This is not the way I had
been doing all these days. I used to create an action in my controller
(class Notifier < ActionMailer::ARMailer) and then create an rhtml
file with the email content and then say
Notifier::deliver_my_email_message to send out the emails. But now
that I am storing these messages in the database, is there a way I can
define the controller action and view dynamically and then pass the
message as a parameter?
Or is there a better way to handle this?
--~--~---------~--~----~------------~-------~--~----~
You rec...