在服务器上禁用TLS 1.0后,未从应用程序发送电子邮件。 [英] Emails not being sent from the application after disabling TLS 1.0 on the server.

查看:106
本文介绍了在服务器上禁用TLS 1.0后,未从应用程序发送电子邮件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我们有.net网络应用程序,我们使用的是"SmtpClient"。发送电子邮件的课程。电子邮件按预期从应用程序发送,但是最近在服务器上禁用TLS 1.0时,服务器上的应用程序停止发送
发送电子邮件。因此,我们必须在服务器上重新启用TLS 1.0。我们检查了代码,但没有找到任何对TLS或其版本的引用。我们在代码中使用SSL。

Hi,

We have .net web application in which we are using the "SmtpClient" class to send emails. The emails are sent as expected from the application however recently when TLS 1.0 was disabled on the server, the application on the server stopped sending out emails. Due to this we had to re-enable TLS 1.0 on the server. We checked the code and did not find any reference to TLS or its version. We are using SSL in the code.


  1. 是"SmtpClient"吗?在内部或外部使用TLS课程?
  2. 如果是,那么我们如何使用最新版本的TLS而不是旧版本?

  3. 如果没有那么我们可以做什么来在使用TLS 1.0禁用后从应用程序发送电子邮件。

谢谢。

推荐答案

SmtpClient使用Windows的SChannel 服务来提供加密。如果您的代码在旧的WinXP / Win2003上运行,则需要升级操作系统才能使用TLS1.1 / 1.2。

SmtpClient uses SChannel service of Windows to provide encryption. If your code runs on old WinXP/Win2003, you need to upgrade the OS in order to use TLS1.1/1.2.

对于所有其他代码,如果您的代码在.NETv3.5上运行,
请确保已安装.NET运行时的TLS更新

For all others, if your code runs on .NETv3.5, please ensure TLS update for .NET runtime got installed.

如果使用上述补丁运行.NETv4 +或v3.5,则代码和邮件服务器应该协商自己并使用支持最高的TLS版本来进行加密。

If running .NETv4+ or v3.5 with the patch mentioned above, your code and the mail server should negotiate themselves and use the highest supported TLS version on both side to do the encryption.

这意味着如果是远程邮件服务器是旧的,并且只支持TLS1.0,如果你想在那里发送邮件,则无法禁用TLS1.0

这篇关于在服务器上禁用TLS 1.0后,未从应用程序发送电子邮件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆