ISmtp ClientRequire TLS Property
Get or set whether the client should use the REQUIRETLS extension if it is available.
Definition
Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
if the REQUIRETLS extension should be used; otherwise, .
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
bool RequireTLS { get; set; }Property Value
Booleanif the REQUIRETLS extension should be used; otherwise, .
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.