Displaying 1 result from an estimated 1 matches for "order_confirmation".
2006 Aug 11
5
actionmailler corrupting emails
....rb
# Smtp config
ActionMailer::Base.server_settings = {
:address => "smtp.b2b2c.ca",
:port => 25,
:domain => ''www.mywebsite.com''
}
ActionMailer::Base.default_charset = "utf-8"
# notfier.rb
class Notifier < ActionMailer::Base
def order_confirmation(order)
@recipients = order.customer.email
@from = "orders@alien8recordings.com"
@subject = "Alien8 Recordings Store Order Confirmation Number #
{order.id}"
@body["order"] = order
end
end
# order_confirmation.text.html.rhtml
<html>
<h...