使用SMTP中继通过Google App发送邮件 [英] Send mail via google app with smtp relay
问题描述
我的应用程序在asp.net中使用c#,每天从应用程序发送一些通知电子邮件(超过500个).我们已将邮件托管更改为Google邮件应用.对于发送邮件,我使用的是smtp主机"smtp.gmail.com",它可以正常工作,但是它的限制为99,因此在发出以下错误之后:
My application in asp.net with c#, from application some notification email sent daily (more then 500). We have change mail hosting to Google mail app. For sending mail I was using smtp host "smtp.gmail.com" and it was work fine, but it has limit of 99 so after that its gives below error:
Error : Mailbox unavailable. The server response was: 5.4.5 Daily sending quota exceeded. qa15sm12740316pab.12 – gsmtp
因此,我已按照文章 https://support.google.com配置了smtp中继/a/answer/2956491
我已经配置了smtp邮件设置,如下所示:
I have configured smtp mail settings as below:
<smtp from="from emai>">
<network host="smtp-relay.gmail.com" enableSsl="true" password="password" userName="username" />
</smtp>
现在,我遇到以下错误,并且邮件未发送.
Now i am getting below errors, and mail is not sending.
Error : Mailbox unavailable. The server response was: 5.7.1 Invalid credentials for relay [xxx.xxx.xxx.xxx] gsmtp
我已经从Google Apps管理控制台设置了SMTP中继服务,并且还添加到了服务器的IP地址(请参见下图).我也尝试取消选中必需的SMTP身份验证"复选框.
I have setup SMTP relay service from Google Apps Admin Console and also added to IP address of server (please see below image). also i have tried to unchecked the "Required SMTP Authentication" check-box.
有人可以帮助我解决此问题吗?
Can anybody help me how to resolve this issue?
让我知道我是否错过了任何事情.
Let me know if i missed anything.
谢谢.
推荐答案
您可以取消选中需要SMTP身份验证",然后在 web.config
中删除 userName
和密码
.会起作用的.
You can untick 'Require SMTP Authenticaton' and in web.config
remove userName
and password
. It will work.
这篇关于使用SMTP中继通过Google App发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!