Forum: Ruby on Rails WTF Happened to ActionMailer?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E3432acdf7dc1d0216266e9fe88a7804?d=identicon&s=25 Todd Blanchard (Guest)
on 2009-03-30 10:02
(Received via mailing list)
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 <do-not-reply@ourwebsite.com>"
        headers     "Reply-to" => "do-not-reply@ourwebsite.com"
        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?
This topic is locked and can not be replied to.