HeaderEncodingOptions Enumeration
Defines the available options which affect how message headers are encoded with mail transfer encodings such as Base64 or Quoted-Printable.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
[FlagsAttribute]
public enum HeaderEncodingOptions
Members
  Member nameValueDescription
None0 Use default Quoted-Printable encoding when required.
ForceEncoding1 Force headers encoding even if there are no extended characters in the header.
Base642 Use Base64 instead of Quoted-Printable encoding. Base64 encoding is more efficient than Quoted-Printable when header values mainly consist of extended characters. Quoted-Printable is preferred if header values mostly contain standard ASCII characters.
IgnoreAttachments4 Headers of message attachments should NOT be encoded (even if the ForceEncoding flag is set). Useful if the mail reader program used by the message recipients can not properly handle encoded filenames.
Remarks

The MIME standard requires message headers containing extended (non-ASCII) characters be encoded using Base64 or Quoted-Printable mail transfer encodings.

EncodeAllHeaders(Encoding, HeaderEncodingOptions) method can be used to encode the message headers automatically.

To encode individual headers, use GetEncodedHeaderValue(String, String, Encoding, HeaderEncodingOptions) method.

See Also