MailBee.NET Objects 4.0

StringConversionConfig.CustomByteEncoding Property

Gets or sets the base encoding of the returned values of string properties of MailMessage object.

public System.Text.Encoding CustomByteEncoding {get; set;}

Property Value

An Encoding to use as base encoding of the returned values of string properties of MailMessage and dependent objects. The default value is DefaultEncoding.

Remarks

You should set this property to the value of responseEncoding of the ASP.NET application (it's usually set in web.config file).

This encoding specifies the encoding to be used on the second step of "string to byte and back to string" conversion when converting bytes into strings.

Exceptions

Exception TypeCondition
MailBeeInvalidArgumentExceptionvalue is a null reference (Nothing in Visual Basic).

See Also

StringConversionConfig Class | MailBee.Mime Namespace | DestinationEncoding