# WTF Happened to ActionMailer?

**URL:** <https://www.ruby-forum.com/t/wtf-happened-to-actionmailer/164237>\
**Category:** Rails\
**Created:** [March 30, 2009, 10:02am UTC](https://www.ruby-forum.com/t/wtf-happened-to-actionmailer/164237 "2009-03-30T10:02:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_Blanchard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Todd\_Blanchard](https://www.ruby-forum.com/u/Todd_Blanchard)\
**Post date:** [March 30, 2009, 10:02am UTC](https://www.ruby-forum.com/t/wtf-happened-to-actionmailer/164237/1 "2009-03-30T10:02:32Z")

</div>

For the record, I’m upgrading from 2.0.2

ActionMailer works great on 2.0.2.

I have a thank you email that I want sent as multipart mime so I have

thanks.text.plain.erb  
and  
thanks.text.html.erb

Then in my ActionMailer::Base subclass I have

def thanks(order)  
recipients order.emailAddress  
from “Us [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)”  
headers “Reply-to” =\> “removed\_email\_address@domain.invalid”  
subject “Thanks for your order”  
sent\_on Time.now  
tickets = order.purchaseTransaction.tickets  
body :first\_name =\> order.nameFirst,:quantity =\>  
tickets.size, :amount =\> “$#  
{order.purchaseTransaction.payment.amount.to\_money}”, :order\_number =\>  
order.id, :ticket\_date =\> tickets.first.validForDate, :order =\> order  
end

I get a single email message with a mime type of text/plain and the  
contents actually created from the thanks.text.html.erb. Looks like  
crap. Why in the world was this lovely bit of solid bullet proof  
functionality messed with at all and how do I get it working again?
