Patches: Browse | Submit New | Admin

[#26728] ar_mailer: support for sending email at a later date

Date:
2009-07-23 20:28
Priority:
3
Submitted By:
Brent Beardsley (bearbr)
Assigned To:
Eric Hodel (drbrain)
Category:
None
State:
Open
Summary:
ar_mailer: support for sending email at a later date

Detailed description
I've added support to ar_mailer to be able to specify the date on which to send it.  I was trying to use mail.sent_on
to pass the date into the model create call but that has the side effect of adding a Date header to the email.
So instead
you call Email.set_send_on Date.parse(params[:send_on]) just prior to calling deliver on the message.

I added a named scope called ready_to_send that is called by ar_sendmail.

This is a patch against ar_mailer 1.4.0

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
delayed_send.diff Download

Changes:

Field Old Value Date By
assigned_tonone2009-07-23 20:30bearbr
File Added4627: delayed_send.diff2009-07-23 20:28bearbr