# Sending newsletters with Rails

**URL:** <https://www.ruby-forum.com/t/sending-newsletters-with-rails/137981>\
**Category:** Rails\
**Created:** [May 19, 2008, 8:50am UTC](https://www.ruby-forum.com/t/sending-newsletters-with-rails/137981 "2008-05-19T08:50:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![g0nzo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/3bc359/32.png) [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Post date:** [May 19, 2008, 8:50am UTC](https://www.ruby-forum.com/t/sending-newsletters-with-rails/137981/1 "2008-05-19T08:50:38Z")

</div>

Hi,

I’m using ARMailer to send emails, but I still need to iterate over  
recepients and call deliver\_email method for each recepient. It works  
fine in production with small number of recepients, but if I had 10000  
of them, wouldn’t rendering 10000 (unfortunately HTML) emails and  
saving them to db take a while?

Is there some way to cache generated email view and just substitute  
“To” field in email header? I’m using Rails 1.2.6.
