# Multipart Emails in Rails 2.3.2

**URL:** <https://www.ruby-forum.com/t/multipart-emails-in-rails-2-3-2/163741>\
**Category:** Rails\
**Created:** [March 24, 2009, 3:06pm UTC](https://www.ruby-forum.com/t/multipart-emails-in-rails-2-3-2/163741 "2009-03-24T15:06:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 24, 2009, 3:06pm UTC](https://www.ruby-forum.com/t/multipart-emails-in-rails-2-3-2/163741/1 "2009-03-24T15:06:39Z")

</div>

Does anyone know the new convention for delivering multipart emails in  
2.3.2? I can’t find the docs on it, but the old way of having your  
files like:

mailer\_action.text.plain.erb  
mailer\_action.text.html.erb

This doesn’t seem to work anymore. I keep getting the error

#\<ActionView::MissingTemplate: Missing template mailer/  
mailer\_action.erb in view path app/views\>

Thanks!  
Tom

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 18, 2009, 1:37pm UTC](https://www.ruby-forum.com/t/multipart-emails-in-rails-2-3-2/163741/2 "2009-05-18T13:37:01Z")

</div>

TomRossi7 wrote:

> mailer\_action.text.plain.erb  
> mailer\_action.text.html.erb

This works for me. But maybe you forgot to define the content type  
“multipart/alternative” in your mailer action?

def newsletter(recipient)  
…  
content\_type “multipart/alternative”  
…  
end
