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

**URL:** <https://www.ruby-forum.com/t/extran-html-html-tags-when-using-actionmailer/88210>\
**Category:** Rails\
**Created:** [March 8, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/extran-html-html-tags-when-using-actionmailer/88210 "2007-03-08T23:05:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rordirectory](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/51bf81/32.png) [@rordirectory](https://www.ruby-forum.com/u/rordirectory)\
**Post date:** [March 8, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/extran-html-html-tags-when-using-actionmailer/88210/1 "2007-03-08T23:05:21Z")

</div>

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 = ‘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
