且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

得到错误传输错误code是0x80040217,而在Asp.Net发送电子邮件

更新时间:2023-01-17 10:37:58

发现的,你也可以得到这个错误,当Gmail的安全设置不允许从您要使用的地址发送的邮件。我不得不启用通过安全性较低的应用程序有问题访问我的帐户:

Discovered that you can also get this error when Gmail's security settings don't allow messages to be sent from the address you intend to use. I had to enable access for less secure apps for my account in question by:


  1. 登录到您要使用从Excel发送电子邮件的地址。

  2. 访问页https://www.google.com/settings/security/lesssecureapps

  3. 单击启用不够安全的应用。

  4. 点击完成。