search for: send_reminders

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

2011 Jul 28
14
Actionmailer Help Needed
...at is supposed to send a daily email digest of tasks that are due for a 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...