Catalyst Internet Mail .NET

InternetMail.Encoding Property

Gets and sets the content encoding method used for the current message part.

[Visual Basic]
Public Property Encoding As String
[C#]
public string Encoding {get; set;}

Property Value

A string which specifies the encoding type.

Remarks

The Encoding property returns the method used for encoding the current message part. Setting this property causes the Content-Transfer-Encoding header value to be updated. The following values are commonly used:

Type Description
7bit The default transfer encoding type, which consists of printable ASCII characters.
8bit Printable ASCII characters, including those characters with the high-bit set (as is common with the ISO Latin-1 character set); this encoding type is not commonly used.
binary All characters; binary transfer encoding is rarely used.
quoted-printable Printable ASCII characters, with non-printable or extended characters represented using their hexadecimal equivalents.
base64 The transfer encoding type commonly used to convert binary data into 7-bit ASCII characters so that it may be transported safely through the mail system.
x-uuencode A transfer encoding type similar in function to the base64 encoding method.

Note that setting this property only updates the Content-Transfer-Encoding header value. To control the actual encoding method used for attachments, specify the encoding method when calling the AttachFile method.

See Also

InternetMail Class | SocketTools Namespace