Hi,
The System.Web.Mail part does not support sending more than one body
format for an email message.
You can use either MailFormat.Text or MailFormat.Html .
I think in your case if you just want to have line breaks,you can use
MailFormat.Html for your whole email body.
message.BodyFor mat = MailFormat.Html ;
String msgTextA = "<br><br>Fr om: Carol Johnson<br><br> Sent: Monday,
February 9, 2004" ;// to convert to html way
Unfortunately the System.Web.Mail class does not allow you
to send an HTML message with support for non
HTML readers.
If you really want to support non HTML readers you will
need to look for some third party.
Here is a link :
http://www.quiksoft.com/newsletter/i...ult.asp?page=1
Hope this helps.
Regards,
Marshal Antony
..NET Developer
http://www.dotnetmarshal.com
"mg" <mg@theworld.co m> wrote in message
news:15******** *************** ***********@mic rosoft.com...
I'd like to send a single e-mail message message that uses the escape
character \n as well as the html tag <i> in the body.
How can I combine the two parts of this merssage?
message.BodyFor mat = MailFormat.Text ;
String msgTextA = "\n\nFrom: Carol Johnson\n\nSent : Monday, February 9,
2004"
message.BodyFor mat = MailFormat.Html ;
String msgTextB = "<i> Inventory Control <i>"
????? message.Body = msgText; ??????
SmtpMail.Send(m essage);