MailBee.NET Objects 3.1

HeaderEncodingOptions Enumeration

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

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum HeaderEncodingOptions

Remarks

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

EncodeAllHeaders method can be used to encode the message headers automatically.

To encode individual headers, use GetEncodedHeaderValue method.

Members

Member NameDescriptionValue
None Use default Quoted-Printable encoding when required. 0
ForceEncoding Force headers encoding even if there are no extended characters in the header. 1
Base64 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. 2
IgnoreAttachments 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. 4

Requirements

Namespace: MailBee.Mime

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

MailBee.Mime Namespace | EncodeAllHeaders