how to send html email with html code pasted in body content

Posted by Parthibansk under ASP.NET on 8/30/2013 | Points: 10 | Views : 1034 | Status : [Member] | Replies : 1
i have a scenario to send html email with html code pasted in email body and output should be the html page..

how to resolve this issue..




Responses

Posted by: Bandi on: 8/30/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
I think you have to set the IsBodyHtml property true

//now create the HTML version
MailDefinition message = new MailDefinition();

message.BodyFileName = "email.htm";
message.IsBodyHtml = true;
message.From = TextBoxYourEmail.Text;
message.Subject = "Zoo Event: " + labelEventName.Text;


References:
http://www.search-this.com/2009/02/05/aspnet-sending-email-both-in-html-and-plain-text/
http://net.tutsplus.com/tutorials/html-css-techniques/getting-started-with-html-emails/

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response