MailBee.NET Objects 3.1

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.

public enum StringConversionMode

Remarks

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.

Members

Member NameDescription
NoConversion The strings will be returned as Unicode. This is normal behavior suitable for most applications.
KeepOriginalByteEncoding The original encoding of the string data should be kept.
ConvertToWinByteEncoding Convert the string data into Windows version of the original encoding.
ConvertToDestinationEncoding Convert the string data into the specified DestinationEncoding.

Requirements

Namespace: MailBee.Mime

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

See Also

MailBee.Mime Namespace | CharsetConverter