Extran <html> </html> tags when using Actionmailer

Hi I am using the action mailer as explained in the pragmatic book.

When I send a text email to yahoo the html part comes as an attachment
but in the yahoo mail body I see the following :

and then the attachment

==============================

Here is my notifier controller

class Notifier < ActionMailer::Base

def sendemail(mytarget,mysubject, msgbody)
@subject = mysubject
@recipients = mytarget
@from = ‘[email protected]
@bcc = ‘[email protected]
content_type “multipart/alternative”

part :content_type => “text/html”,
:body => render_message(“sendemail”, :msgbody => msgbody)

end
end

thanks
rt

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