Gets or sets the encoded display name.
The encoded display name.
If the display name contains non-ASCII characters, it must be encoded before it can be used in a header field. This method provides a way to set the encoded display name directly. The argument is used "as is": when the string representation is assembled, no additional conversion is performed on the display name.
This method is useful in certain situations. If you never
display Internet mail addresses, there is no need to convert the
display name to a displayable form. For example, if you were
managing a mailing list, you could get the
EncodedDisplayName property, store it in a database, and
insert it into another mailbox by setting the
EncodedDisplayName. The encoded display name is handy for
databases, because it keeps the display name and its character
encoding identifier together.
The following is a simple example of a display name encoded with the modified quoted-printable encoding:
Decoded: Jürgen König
Encoded: =?iso-8859-1?Q?J=FCrgen_K=F6nig?=
For more information about the encoding of text in header fields, see RFC 2047.
Mailbox Class | Hunny.Mime Namespace