Variable SMTPClientSettings.tlsValidationMode
Determines how the server certificate gets validated.
class SMTPClientSettings
{
// ...
TLSPeerValidationMode tlsValidationMode
= TLSPeerValidationMode .trustedCert;
// ...
}