Forum: Ruby on Rails Send multiple emails

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
Af6c01b87003c2bf4c0b81658199c0a4?d=identicon&s=25 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 <>
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.