In pre Rails 3 world I was using ar_sendmail to queue up emails. Then I would setup a cron job every few minutes to deliver the emails. But that doesn''t work perfectly in Rails 3. What is the best way to deliver emails in production environment in Rails 3? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Have a look at running some kind of delayed job queue - I use Resque normally, which I think comes from GitHub. With Resque, and ResqueMailer (another gem) you can simply "include Resque::Mailer" in your mailers to have them automatically queued for delivery. Hope that helps. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
We just set up a daemon (http://railscasts.com/episodes/129-custom-daemon), which is the same idea, but it runs inside your app''s environment. To send an email from our app, we just add a row to a table. Then the daemon wakes up every minute, clears out that table, and sends the email. On Sat, Jan 15, 2011 at 12:50 PM, Amy Eastwood <amy.eastwood2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> In pre Rails 3 world I was using ar_sendmail to queue up emails. Then > I would setup a cron job every few minutes to deliver the emails. But > that doesn''t work perfectly in Rails 3. What is the best way to > deliver emails in production environment in Rails 3?-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Is there a way to use beanstalkd and stalker to replicate ar_sendmail functionality? On Jan 16, 3:49 am, John Maxwell <jgwmaxw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Have a look at running some kind of delayed job queue - I use Resque > normally, which I think comes from GitHub. With Resque, and ResqueMailer > (another gem) you can simply "include Resque::Mailer" in your mailers to > have them automatically queued for delivery. Hope that helps.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Amy, you might want to try SimpleWorker at http://www.simpleworker.com , great for sending emails (or doing anything in batch) and very easy to use, no setup required. Here''s a sample email worker: http://support.simpleworker.com/kb/sample-workers/emailworker-send-emails-in-the-background-or-schedule-for-later Travis -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.