Actionmailler corrupting emails

Hi All,

I have a problem with actionmailer corrupting my html emails. It is
adding the character ‘3D’ before any quotes (single or double) in my
source and smattering ‘=’ characters throughout as well. Very
strange. Here’s an example from one of the emails:


Thank you for order with Alien8 Recordings. Below you will find a rec= eipt for your order.

<h2 id=3D"h2_artist">Order 59</h2>
	=

		<div class=3D"myform" style=3D"float:right; width: 50%;">
			<h4>Shipping Info</h4>

			<div class=3D"myfield">234 6th Ave</div>
			<div class=3D"myfield">Suite 340</div>
			<div class=3D"myfield">New York</div>
			<div class=3D"myfield"></div>
			<div class=3D"myfield">10010</div>
			<div class=3D"myfield">United States</div>
		</div>
	=

	=

Any ideas what could be causing this? Someone on irc mentioned an
issue with ruby cgi library, but wasn’t sure how to fix it. My code
is below.

Thanks in advance,
Sean

Here’s my code:

development.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 = “[email protected]
@subject = “Alien8 Recordings Store Order Confirmation Number #
{order.id}”
@body[“order”] = order
end

end

order_confirmation.text.html.rhtml

Thank you for order with Alien8 Recordings. Below you will find a receipt for your order.

<%= render :partial => '../admin/orders/order_display' %>

ALIEN8 RECORDINGS
P.O. BOX 666, STATION R
MONTREAL, QC
CANADA, H2S 3L1

http://www.alien8recordings.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs