# ActionMailer to send to multiple people

**URL:** <https://www.ruby-forum.com/t/actionmailer-to-send-to-multiple-people/63913>\
**Category:** Rails\
**Created:** [June 20, 2006, 4:18pm UTC](https://www.ruby-forum.com/t/actionmailer-to-send-to-multiple-people/63913 "2006-06-20T16:18:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [June 20, 2006, 4:18pm UTC](https://www.ruby-forum.com/t/actionmailer-to-send-to-multiple-people/63913/1 "2006-06-20T16:18:07Z")

</div>

I’ve been working with ActionMailer for a few days and finally have a  
pretty good grasp of it. In the book I’m reading, it shows how to send  
to multiple users or an array of users.

Is there a setting or some configuration I can do to send the email to  
each person separately, or would I just need to loop through each user  
and send one email at a time?

What is the best way to accomplish this?

Thanks

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [June 20, 2006, 7:03pm UTC](https://www.ruby-forum.com/t/actionmailer-to-send-to-multiple-people/63913/2 "2006-06-20T19:03:02Z")

</div>

Each person separately? If it’s the same message to multiple people, use  
the  
bcc instead of the to.  
(put user one in the to, then the rest in bcc)

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [June 21, 2006, 3:29pm UTC](https://www.ruby-forum.com/t/actionmailer-to-send-to-multiple-people/63913/3 "2006-06-21T15:29:30Z")

</div>

ok, but if i was to send out messages that were personalize, say with  
their name in the email, i would just have to send one at a time  
correct?

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [June 21, 2006, 3:24pm UTC](https://www.ruby-forum.com/t/actionmailer-to-send-to-multiple-people/63913/4 "2006-06-21T15:24:14Z")

</div>

Brian H. wrote:

> Each person separately? If it’s the same message to multiple people, use  
> the  
> bcc instead of the to.  
> (put user one in the to, then the rest in bcc)

Everybody sees the email address you put in the “To:” box. Just use  
bcc. I haven’t done that but it should work.

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [June 21, 2006, 3:32pm UTC](https://www.ruby-forum.com/t/actionmailer-to-send-to-multiple-people/63913/5 "2006-06-21T15:32:51Z")

</div>

also, before i was using rails, i have a program for newsletters called  
PHPlist that worked really well for what i needed. is there something  
out there for ruby on rails that does the same thing or at least  
something similar?

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [June 27, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/actionmailer-to-send-to-multiple-people/63913/6 "2006-06-27T14:18:25Z")

</div>

If it’s personalized messages, then they go out one at a time. That’s no  
different than any other language… that’s basic SMTP. Not that hard  
though
