This documentation is archived and is not being maintained.
MailMessage.BodyFormat Property
.NET Framework 1.1
Gets or sets the content type of the body of the e-mail message.
[Visual Basic] Public Property BodyFormat As MailFormat [C#] public MailFormat BodyFormat {get; set;} [C++] public: __property MailFormat get_BodyFormat(); public: __property void set_BodyFormat(MailFormat); [JScript] public function get BodyFormat() : MailFormat; public function set BodyFormat(MailFormat);
Property Value
One of the MailFormat values.
Example
[Visual Basic] Dim MyMessage As MailMessage = New MailMessage() MyMessage.BodyFormat = MailFormat.Html [C#] MailMessage MyMessage = new MailMessage(); MyMessage.BodyFormat = MailFormat.Html; [C++] MailMessage* MyMessage = new MailMessage(); MyMessage->BodyFormat = MailFormat::Html;
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
MailMessage Class | MailMessage Members | System.Web.Mail Namespace
Show: