# Send multiple emails

**URL:** <https://discuss.rubyonrails.org/t/send-multiple-emails/67367>\
**Category:** rubyonrails-talk\
**Created:** [July 6, 2013, 7:06am UTC](https://discuss.rubyonrails.org/t/send-multiple-emails/67367 "2013-07-06T07:06:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [July 6, 2013, 7:06am UTC](https://discuss.rubyonrails.org/t/send-multiple-emails/67367/1 "2013-07-06T07:06:33Z")

</div>

Any problems sending a lot of emails with rails like this:

@members = Members.all @members.each do |m| &nbsp;&nbsp;&nbsp;&nbsp;MemberMailer.message(@message, m).deliver end

---

<div class="post-metadata">

**Author:** ![Thiago\_Cifani](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@Thiago\_Cifani](https://discuss.rubyonrails.org/u/Thiago_Cifani)\
**Post date:** [July 6, 2013, 1:46pm UTC](https://discuss.rubyonrails.org/t/send-multiple-emails/67367/2 "2013-07-06T13:46:35Z")

</div>

The major problem would be if you are a user and somehow when you signup or 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. it will help a lot with rake tasks in and other piece of code in background jobs.

hope I have helped you.

nice day
