使用 Google Apps 电子邮件/smtp 从网站发送邮件时出现问题
我有一个 Asp.Net 网站,它使用 google SMTP 发送电子邮件。使用以下配置,它可以与正常的 gmail 帐户一起正常工作。
<smtp from="[email protected]">
<network host="smtp.gmail.com" port="587" userName="[email protected]" password="mypassword" enableSsl="true" /></smtp>
现在我需要使用 Google Apps 电子邮件和 smtp,我尝试更改配置,如下所示,
<smtp from="[email protected]">
<network host="smtp.gmail.com" port="587" userName="[email protected]" password="mypassword" enableSsl="true" /> </smtp>
但它抛出身份验证失败错误!!!
“SMTP 服务器需要安全连接,或者客户端未经过身份验证。服务器响应是:5.5.1 需要身份验证。了解更多信息”
我仔细检查了 Google 电子邮件设置、用户名和密码,但仍然无法解决问题!
关于这个问题的任何想法都会有很大的帮助。
谢谢和问候,
安兹
I have an Asp.Net site which uses google SMTP to send emails.. its working fine with normal gmail accounts using the below configuration
<smtp from="[email protected]">
<network host="smtp.gmail.com" port="587" userName="[email protected]" password="mypassword" enableSsl="true" /></smtp>
Now I need to use Google Apps email and smtp and I tried to change the configuration as shown below
<smtp from="[email protected]">
<network host="smtp.gmail.com" port="587" userName="[email protected]" password="mypassword" enableSsl="true" /> </smtp>
But its throwing the Authentication failed error!!!
"The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at"
I double checked the Google EMail Settings, Username and password but still couldn't solve it!!
Any thoughts on the issue will be a great help..
Thanks and Regards,
Anz
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自 MSDN:
另请查看此链接。
From MSDN :
Look to this link also.
您应该按照服务器响应(如果有)中的说明进行操作。也许,您需要比通常的用户名/密码模式更多/另一种身份验证方案。也许您可以在 google API 文档中找到更多答案?
You should follow the instructions in the server response (if any). Probably, you need more/another authentication scheme than the usual username/password pattern. Maybe you find more answers in the google API documentation?