MimePartContentTransferEncoding Property

Get or set the content transfer encoding.

Definition

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

Property Value

ContentEncoding
The content transfer encoding.

Implements

IMimePartContentTransferEncoding

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 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.

Exceptions

ArgumentOutOfRangeException value is not a valid content encoding.
ObjectDisposedException The MimePart has been disposed.

See Also