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:
我的应用程序在asp.net中使用c#,从应用程序每天发送一些通知邮件(超过500)。我们已将邮件托管更改为Google邮件应用。对于发送邮件,我使用smtp主机“smtp.gmail.com”,它工作正常,但它的限制为99所以之后它给出了以下错误:
Error : Mailbox unavailable. The server response was: 5.4.5 Daily sending quota exceeded. qa15sm12740316pab.12 – gsmtp
So I have configure smtp relay as per the article https://support.google.com/a/answer/2956491
所以我根据文章https://support.google.com/a/answer/2956491配置了smtp中继
I have configured smtp mail settings as below:
我已经配置了smtp邮件设置如下:
<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
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.
我已从Google Apps管理控制台设置SMTP中继服务,并且还添加到服务器的IP地址(请参见下图)。我也尝试取消选中“必需的SMTP身份验证”复选框。
Can anybody help me how to resolve this issue?
任何人都可以帮我解决这个问题吗?
Let me know if i missed anything.
如果我错过任何事情,请告诉我。
Thank you in advance.
先感谢您。
1 个解决方案
#1
You can untick 'Require SMTP Authenticaton' and in web.config
remove userName
and password
. It will work.
您可以取消选中“Require SMTP Authenticaton”,并在web.config中删除userName和密码。它会工作。
#1
You can untick 'Require SMTP Authenticaton' and in web.config
remove userName
and password
. It will work.
您可以取消选中“Require SMTP Authenticaton”,并在web.config中删除userName和密码。它会工作。