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: 6.0.3+7aaac1a1ae687e358c83f79a9831e21a65bfedd5
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