search for: deliver_send_message

Displaying 1 result from an estimated 1 matches for "deliver_send_message".

2006 Jun 12
5
Method in Model
I have a simple method in a model, to send out e-mails via the script/runner. def Reminder.dropoff @messages = Reminder.find(:all, :conditions => [ "time < now()"]) @messages.each do |mes| Mailman::deliver_send_message(mes) end end However, it''s not sending e-mails. When this exact code was dropped in a controller, it worked great... is there something different about methods in models that I would need to apply here? Thanks! -stirman -- Posted via http://www.ruby-forum.com/.