Email Account TLS Connection Problem

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
I got a TLS connection error while sending an e-mail. I fixed this problem by adding a TLS13 protocol option  to  sslprotocols of SmtpClient while building it.

Nop Version: 4.30
File Path: Nop.Services\Messages\SmtpBuilder.cs

var client = new SmtpClient
            {
                ServerCertificateValidationCallback = ValidateServerCertificate
            };
//Added all tls protocols
            client.SslProtocols =  System.Security.Authentication.SslProtocols.Tls | System.Security.Authentication.SslProtocols.Tls11 |
                    System.Security.Authentication.SslProtocols.Tls12 | System.Security.Authentication.SslProtocols.Tls13;
3 years ago
Thanks. We'll investigate it.
3 years ago
Done. Please see this commit.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.