Specifies the Content-Transfer-Encoding header information for an e-mail message attachment.
| C# | Visual Basic |
public enum TransferEncoding
Public Enumeration TransferEncoding
| Member | Description |
|---|---|
| Unknown |
Indicates that the transfer encoding is unknown.
|
| QuotedPrintable |
Encodes data that consists of printable characters in the US-ASCII character set. See RFC 2406 Section 6.7.
|
| Base64 |
Encodes stream-based data. See RFC 2406 Section 6.8.
|
| SevenBit |
Used for data that is not encoded.
The data is in 7-bit US-ASCII characters with a total line length of no longer than 1000 characters.
See RFC2406 Section 2.7.
|
| HasFlag |
Determines whether one or more bit fields are set in the current instance.
|
The values in the TransferEncoding enumeration are used with the AttachmentBase.TransferEncoding property.
The Content-Transfer-Encoding header specifies the encoding of the associated message body so that it meets SMTP requirements. SMTP requires data for transport to be in 7-bit US-ASCII characters with lines no longer than 1000 characters.
Content-Transfer-Encoding values are described in detail in RFC 2045 Section 6, available at http://www.ietf.org.