StringConversionMode Enumeration
Defines the modes which specify if (and how) the values of string properties of MailMessage and dependent objects should be charset-converted when being returned to the application.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public enum StringConversionMode
  Member nameValueDescription
NoConversion0 The strings will be returned as Unicode. This is normal behavior suitable for most applications.
KeepOriginalByteEncoding1 The original encoding of the string data should be kept.
ConvertToWinByteEncoding2 Convert the string data into Windows version of the original encoding.
ConvertToDestinationEncoding3 Convert the string data into the specified DestinationEncoding.

By default, all string properties of MailMessage and dependent objects (such as Attachment, MimePart, etc) return string values in Unicode. Most applications live fine with that.

However, if you are developing non-Unicode web application (i.e. it can use the charset different from UTF-8), you can use MailMessage.Parser.CharsetConverter.ConversionMode property to tell MailBee to return strings in another charset encoding.

The modes defined in this enumeration control if the message data will be returned as Unicode or will retain the same encoding it has in the message or will be converted using another encoding.

See Also