ActionMailer to send to multiple people

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

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)

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?

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.

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?

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs