Posted on 09/04/2025 14:29:10
Hi
The port you are using indicates that you use TLS 1.2 which is not supported by .NET Core. From the .NET documentation:
The SmtpClient class only supports the SMTP Service Extension for Secure SMTP over Transport Layer Security as defined in RFC 3207. In this mode, the SMTP session begins on an unencrypted channel, then a STARTTLS command is issued by the client to the server to switch to secure communication using SSL. See RFC 3207 published by the Internet Engineering Task Force (IETF) for more information.
An alternate connection method is where an SSL session is established up front before any protocol commands are sent. This connection method is sometimes called SMTP/SSL, SMTP over SSL, or SMTPS and by default uses port 465. This alternate connection method using SSL is not currently supported.
So check if your SMTP provider supports TLS 1.3 - it is probably another port, and probably 587. You can also try to remove the port from DW configuration and just check the TLS option - or see if it works without TLS at all on port 25.
BR Nicolai