Forum: Ruby on Rails Send multiple emails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3275da7fdbd73cb4e7956fd0d29164de?d=identicon&s=25 Paul Bergstrom (palb)
on 2013-07-06 09:06
Any problems sending a lot of emails with rails like this:

@members = Members.all
@members.each do |m|
    MemberMailer.message(@message, m).deliver
thiagocifani (Guest)
on 2013-07-06 15:48
(Received via mailing list)
The major problem would be if you are a user and somehow when you signup
try to sendo those emails through some action, the server could return a
timeout response, if you have a lot of users. What I recommend you to do
is, put all mailers call inside a worker like sidekiq or sucker_punch.
will help a lot with rake tasks in and other piece of code in background

hope I have helped you.

nice day

2013/7/6 Paul Bergstrom <>

> --

thiagocifani <>
This topic is locked and can not be replied to.