Click or drag to resize
MimeKit

BodyBuilderBodyEncoding Property

Get or set the character encoding to be used for the message body.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.17.0
Syntax
C#
public Encoding BodyEncoding { get; set; }

Property Value

Encoding
The character encoding.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is .
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".

See Also