HeaderEncodingOptions Enumeration |
Namespace: MailBee.Mime
Member name | Value | Description | |
---|---|---|---|
None | 0 | Use default Quoted-Printable encoding when required. | |
ForceEncoding | 1 | Force headers encoding even if there are no extended characters in the header. | |
Base64 | 2 | 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. | |
IgnoreAttachments | 4 | 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. |
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.