 | 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
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