Click or drag to resize
MimeKit

IMimePartContentTransferEncoding Property

Get or set the content transfer encoding.

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

Property Value

ContentEncoding
The content transfer encoding.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is not a valid content encoding.
ObjectDisposedException The IMimePart 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