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 Encoding BodyEncoding { get; set; }

Property Value

Type: System.Text.Encoding

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

MailMessage MyMessage = new MailMessage();
MyMessage.BodyEncoding = Encoding.ASCII;

.NET Framework
Available since 1.1
Return to top
Show: