Click or drag to resize
MimeKit

MimePartContentTransferEncoding Property

Get or set the content transfer encoding.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public ContentEncoding ContentTransferEncoding { get; set; }

Property Value

ContentEncoding
The content transfer encoding.

Implements

IMimePartContentTransferEncoding
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is not a valid content encoding.
ObjectDisposedException The MimePart has been disposed.
Remarks
The Content-Transfer-Encoding header specifies an auxiliary encoding that was applied to the content in order to allow it to pass through mail transport mechanisms (such as SMTP) which may have limitations in the byte ranges that it accepts. For example, many SMTP servers do not accept data outside of the 7-bit ASCII range and so sending binary attachments or even non-English text is not possible without applying an encoding such as base64 or quoted-printable.
See Also