Sets the display name from a Unicode string, with a hint about the character encoding to use.
This method attempts to use the specified character encoding
(charset) when the display name is encoded. The character encoding
uses the .NET Framework Class Library, so only encodings supported
by .NET will succeed. If the character encoding fails, the method
throws System.NotSupportedException.
As a special case, if all characters are in the US-ASCII character set, the charset will be changed to US-ASCII and no encoding will be performed.
Use this method to set the display name if:
Mailbox Class | Hunny.Mime Namespace