在 Asp.Net 中发送电子邮件时出现错误传输错误代码为 0x80040217 [英] Getting Error Transport error code was 0x80040217 while Sending Email in Asp.Net

查看:17
本文介绍了在 Asp.Net 中发送电子邮件时出现错误传输错误代码为 0x80040217的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试发送电子邮件

I am trying to send Email

但我收到此错误.

无法将邮件发送到 SMTP 服务器.传输错误代码为 0x80040217.服务器响应不可用

任何有想法的人请帮助我

any one having any idea about it please Help me

推荐答案

发现当 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. 点击完成.

这篇关于在 Asp.Net 中发送电子邮件时出现错误传输错误代码为 0x80040217的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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