# Emailing: lots of recipients + individual mails/attachments

**URL:** <https://www.ruby-forum.com/t/emailing-lots-of-recipients-individual-mails-attachments/154328>\
**Category:** Rails\
**Created:** [November 27, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/emailing-lots-of-recipients-individual-mails-attachments/154328 "2008-11-27T19:08:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tharrisx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e19adc/32.png) [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Post date:** [November 27, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/emailing-lots-of-recipients-individual-mails-attachments/154328/1 "2008-11-27T19:08:46Z")

</div>

Hi there!

What emailing solution (plugin, gem, script) can you suggest for the  
following situation:

- mails to a lot of people (“mass” mailing)
- recipients can have 1 or more attachments (various formats)
- attachments are individual files (with individual file names)
- recipients get individual mails (100% individual content, not just  
standard text with personalized greetings)

I have found the following script, but it seems to be made for the case  
where:

- everybody gets the exact same email
- emails have no attachments

[http://www.myowndb.com/blog/?p=20](http://www.myowndb.com/blog/?p=20)

Can you help me with this?

Thanks a lot for any suggestions!  
Tom

---

<div class="post-metadata">

**Author:** ![tharrisx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e19adc/32.png) [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Post date:** [November 28, 2008, 6:25am UTC](https://www.ruby-forum.com/t/emailing-lots-of-recipients-individual-mails-attachments/154328/2 "2008-11-28T06:25:41Z")

</div>

I don’t understand your question, are you trying to find a way to mass  
mail people unique messages with unique attachments?

---

<div class="post-metadata">

**Author:** ![tharrisx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e19adc/32.png) [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Post date:** [November 28, 2008, 9:33am UTC](https://www.ruby-forum.com/t/emailing-lots-of-recipients-individual-mails-attachments/154328/3 "2008-11-28T09:33:14Z")

</div>

Yes, that’s exactly what I need to do!

(I have all these user\_ids, message\_ids, attachment\_ids stored in an  
array…)

I would be glad if you guys could let me know what solution you can  
suggest for such a case - thanks a lot!

---

<div class="post-metadata">

**Author:** ![tharrisx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e19adc/32.png) [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Post date:** [November 28, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/emailing-lots-of-recipients-individual-mails-attachments/154328/4 "2008-11-28T13:46:35Z")

</div>

Thanks, it seems to handle the “mass” part in my problem.

Has anyone an idea how to handle the “individual” mail  
content/attachment part?

---

<div class="post-metadata">

**Author:** ![tharrisx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e19adc/32.png) [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Post date:** [November 28, 2008, 1:12pm UTC](https://www.ruby-forum.com/t/emailing-lots-of-recipients-individual-mails-attachments/154328/5 "2008-11-28T13:12:00Z")

</div>

apparently ar\_mailer-batch works well, but i don’t know if it will do  
what you need it to… you might have to hack it
