Click or drag to resize
MimeKit

SmtpClientRequireTLS Property

Get or set whether the client should use the REQUIRETLS extension if it is available.

Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public bool RequireTLS { get; set; }

Property Value

Boolean
true if the REQUIRETLS extension should be used; otherwise, false.

Implements

ISmtpClientRequireTLS
Remarks

Gets or sets whether the client should use the REQUIRETLS extension if it is available.

The REQUIRETLS extension (as defined in rfc8689) is a way to ensure that every SMTP server that a message passes through on its way to the recipient is required to use a TLS connection in order to transfer the message to the next SMTP server.

Note  Note
This feature is only available if Capabilities contains the RequireTLS flag when sending the message.
See Also