Re: How to send HTML Emails? Quote:
Originally Posted by leoraja8 Hi friends,
How to send Emails in ASP.Net?
I need to send html file in that mail. | Ya buddy,
You can send html formatted mail using MailFormat.Html.
Be sure the BodyFormat property is set to MailFormat.Html and then set the Body property like in the following example: Code: Msg.Body = "<HTML><HEAD><TITLE>Hi Leo!</TITLE></HEAD><BODY><h3>Hi buddy</h3><p><font face='Verdana' size='2'>Testing</font></p></BODY></HTML>";
__________________ S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Last edited by S.Vinothkumar : 09-21-2007 at 07:36 AM.
|