Variable SMTPClientSettings.tlsValidationMode
Determines how the server certificate gets validated.
class SMTPClientSettings
{
// ...
TLSPeerValidationMode tlsValidationMode
= cast(TLSPeerValidationMode)15;
// ...
}