Delayed e-mail sending

1 view
Skip to first unread message

Alan Harper

unread,
May 26, 2008, 9:51:46 PM5/26/08
to Ruby on Rails Oceania
Hi All,

I'm writing a feature at the moment to dealy e-mail sending (as in
"Don't send until tomorrow" etc)

I was thinking of hacking ar_mailer, but does anyone have any better
ideas?

Cheers,
Alan

Tim Lucas

unread,
May 26, 2008, 9:55:58 PM5/26/08
to rails-...@googlegroups.com

How about a ScheduledEmail model, then a rake task to check the
scheduled emails every 5 mins and send any that need sending.

-- tim

Xavier Shay

unread,
May 26, 2008, 10:04:14 PM5/26/08
to rails-...@googlegroups.com
Maybe base something on:
http://github.com/tobi/delayed_job/tree/master

I *think* you can defer by a time, if not I can't imagine it would be
hard to add

(or starling/activemessaging/etc...)

Xav

On 27/05/2008, at 11:51 AM, Alan Harper wrote:

Alan Harper

unread,
May 27, 2008, 12:22:50 AM5/27/08
to rails-...@googlegroups.com

On 27/05/2008, at 12:04 PM, Xavier Shay wrote:

>
> Maybe base something on:
> http://github.com/tobi/delayed_job/tree/master
>
> I *think* you can defer by a time, if not I can't imagine it would be
> hard to add

Perfect, is now doing exactly what I want. Yes a patch was needed (http://www.github.com/aussiegeek/delayed_job
)

Dylan Egan

unread,
May 27, 2008, 1:24:15 AM5/27/08
to rails-...@googlegroups.com
ar_mailer does this also I think.

Dylan.

Reply all
Reply to author
Forward
0 new messages