 | 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.1.5+a53ab3ada11cc1e76f765052993b2098e0d69681
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