 | 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
Syntaxpublic Layout<bool> RequireTLS { get; set; }
Public Property RequireTLS As Layout(Of Boolean)
Get
Set
Dim instance As MailTarget
Dim value As Layout(Of Boolean)
value = instance.RequireTLS
instance.RequireTLS = value
member RequireTLS : Layout<bool> with get, set
Property Value
Type:
LayoutBoolean
RemarksGets 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 |
---|
This feature is only available if connected SMTP server supports capability
RequireTLS flag when sending the message. |
See Also