MailMessage.BodyEncoding Property

 

Gets or sets the encoding type of the body of the e-mail message. Recommended alternative: System.Net.Mail.

Namespace:   System.Web.Mail
Assembly:  System.Web (in System.Web.dll)

Public Property BodyEncoding As Encoding

Property Value

Type: System.Text.Encoding

One of the Encoding values that indicates the encoding type of the body of the e-mail message.

Dim MyMessage As MailMessage = New MailMessage()
MyMessage.BodyEncoding = Encoding.ASCII

.NET Framework
Available since 1.1
Return to top
Show: