Body BuilderBody Encoding Property
Get or set the character encoding to be used for the message body.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The character encoding.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Encoding BodyEncoding { get; set; }Property Value
EncodingThe character encoding.
Remarks
Gets or sets the character encoding to be used for the body content.
The value specified for the BodyEncoding property sets the charset parameter in the Content-Type headers for the TextBody and HtmlBody. The default charset is "utf-8".
Exceptions
| ArgumentNullException | value is . |