【问题标题】:Authentication failed because the remote party has closed the transport stream c# Send Email身份验证失败,因为远程方已关闭传输流 c# Send Email
【发布时间】:2016-07-26 21:23:44
【问题描述】:

发送电子邮件的方法运行正常,但有时会显示此消息:Authentication failed because the remote party has closed the transport stream.

这通常发生在使用与X509Certificates 证书一起使用的另一种方法时...电子邮件提供商的配置正常。

有人可以帮我吗?

谢谢

【问题讨论】:

    标签: c# email smtp certificate port


    【解决方案1】:

    我昨天使用下面的代码解决了这个问题:

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 |安全协议类型.Tls;

    我在这里找到的这段代码Default SecurityProtocol in .NET 4.5

    我认为是框架版本的问题,我的程序使用的是3.5版本...

    谢谢

    【讨论】:

      猜你喜欢
      • 2017-08-18
      • 2015-08-20
      • 2013-03-24
      • 2022-06-29
      • 1970-01-01
      • 2017-02-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多