Displaying 1 result from an estimated 1 matches for "deliver_task".
2011 Jul 28
14
Actionmailer Help Needed
...specific user. So far, it''s
working but the email only displays the first message.
In my task model
scope :tasksdue, lambda {
where("dueddate > ? AND status = ?", Date.today, false)
}
def self.send_reminders
Task.tasksdue.find_each do |task|
TaskMailer.deliver_task_due task
end
task_mailer.rb
class TaskMailer < ActionMailer::Base
def task_due(task)
recipients @task.user.email
from "email-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org"
subject "Your report entitled"
sent_on Time.now
content_type &qu...