Smtp ClientPrefer Send As Binary Data Property
Get whether or not the BDAT command is preferred over the DATA command.
Definition
Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
if the BDAT command is preferred over the DATA command; otherwise, .
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
protected virtual bool PreferSendAsBinaryData { get; }Property Value
Booleanif the BDAT command is preferred over the DATA command; otherwise, .
Remarks
Gets whether or not the BDAT command is preferred over the standard DATA command.
The BDAT command is normally only used when the message being sent contains binary data (e.g. one or more MIME parts contains a Content-Transfer-Encoding: binary header). This option provides a way to override this behavior, forcing the SmtpClient to send messages using the BDAT command instead of the DATA command even when it is not necessary to do so.