|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Converting from System.Web.Mail to System.Net.MailI am moving an application that involves sending email from 1.1 to 2.0. I am
attempting to convert the email-sending code from System.Web.Mail to System.Net.Mail. I think I have most of this accomplished, but I am trying to find the System.Net.Mail equivelant of System.Web.Mail.MailMessage.BodyFormat. In the past, I used code such as the following to specify whether the message was html or text: mymessage.BodyFormat = Mail.MailFormat.Html However, I cannot find a property of the System.Net.Mail.MailMessage class that specifies this. What do I do to specify html or text? Thanks. I think you're supposed to use myMessage.IsBodyHtml = true;
Nathan Sokalski wrote: Show quote > I am moving an application that involves sending email from 1.1 to 2.0. I am > attempting to convert the email-sending code from System.Web.Mail to > System.Net.Mail. I think I have most of this accomplished, but I am trying > to find the System.Net.Mail equivelant of > System.Web.Mail.MailMessage.BodyFormat. In the past, I used code such as the > following to specify whether the message was html or text: > > mymessage.BodyFormat = Mail.MailFormat.Html > > However, I cannot find a property of the System.Net.Mail.MailMessage class > that specifies this. What do I do to specify html or text? Thanks. > -- > Nathan Sokalski > njsokal***@hotmail.com > http://www.nathansokalski.com/ |
|||||||||||||||||||||||