Forum: Ruby on Rails Extran <html> </html> tags when using 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.
Ror D. (Guest)
on 2007-03-09 00:05
(Received via mailing list)
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 :

<html>
</html>
and then the attachment

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

Here is my notifier controller

class Notifier < ActionMailer::Base

def sendemail(mytarget,mysubject, msgbody)
@subject    = mysubject
@recipients = mytarget
@from       = 'removed_email_address@domain.invalid'
@bcc        = 'removed_email_address@domain.invalid'
content_type "multipart/alternative"

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


end
end

thanks
rt
This topic is locked and can not be replied to.