Click or drag to resize

MailTargetRequireTLS Property

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

Namespace:  NLog.MailKit
Assembly:  NLog.MailKit (in NLog.MailKit.dll) Version: 5.3+9ef8e80a2d4d2222f0cae59868deaa715a68a2da
Syntax
public Layout<bool> RequireTLS { get; set; }

Property Value

Type: LayoutBoolean
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 connected SMTP server supports capability RequireTLS flag when sending the message.
See Also