ActionMailer seems to ignore content-type specification

Hi,

My employer would like me to send and html formatted email (Ugh!).
This seems easy enough…I thought I’d just change:

@headers[‘Content-Type’]= “text/plain;
charset=#{UserSystem::CONFIG[:mail_charset]}; format=flowed”

to

@headers[‘Content-Type’]= “text/html;
charset=#{UserSystem::CONFIG[:mail_charset]}; format=flowed”

After restarting and running, the log still shows:

Content-Type: text/plain; charset=utf-8

Not text/html, as I would have liked. And the markup does appear in the
email body, contrary to my wishes.

Any ideas?

Elliott

I got it. I re-read the doc, and found that I needed to do this:

content_type “text/html; charset=#{UserSystem::CONFIG[:mail_charset]};
format=flowed”

rather than this

@headers[‘Content-Type’]=
“text/html;charset=#{UserSystem::CONFIG[:mail_charset]}; format=flowed”

Elliott B. wrote:

Hi,

My employer would like me to send and html formatted email (Ugh!).
This seems easy enough…I thought I’d just change:

@headers[‘Content-Type’]= “text/plain;
charset=#{UserSystem::CONFIG[:mail_charset]}; format=flowed”

to

@headers[‘Content-Type’]= “text/html;
charset=#{UserSystem::CONFIG[:mail_charset]}; format=flowed”

After restarting and running, the log still shows:

Content-Type: text/plain; charset=utf-8

Not text/html, as I would have liked. And the markup does appear in the
email body, contrary to my wishes.

Any ideas?

Elliott