Setting the E-Mail Format


One advantage of most e-mail readers is their capability to process HTML formatting within the message body. This enables an e-mail to present itself just like a Web page. The System.Web.Mail namespace contains a format object called MailFormat with two enumerated types: Text or HTML. To set the MailMessage format property just assign it a value from the MailFormat object as follows :

 mailObj.BodyFormat = MailFormat.Text 


 mailObj.BodyFormat = MailFormat.HTML 

Special Edition Using ASP. NET
Special Edition Using ASP.Net
ISBN: 0789725606
EAN: 2147483647
Year: 2002
Pages: 233 © 2008-2017.
If you may any questions please contact us: