Hi,
to send an email with ar_mailer I need to generate it and save it to
the db, right?
Currently the code looks very simple:
Newsletter.recepients.each do |recepient|
NewsletterMailer.deliver_dedicated(request, recepient, newsletter)
end
But for i.e. 30000 receivers it''s going to take a long while anyway.
Should I create them somehow in the background using BackgrounDRb or
something similar? If I should, then I could get rid of the ar_mailer
and just send all emails in the background... The only advantage of
ar_mailer in this case would be the functionality to send emails in
batches.
Any thoughts?
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---