发送邮件时出错 - 服务器响应为:5.7.57 SMTP,客户端未通过身份验证以发送匿名邮件

时间:2017-12-15 11:02:15

标签: c# asp.net-mvc email authentication

在我的应用程序中发送ForgotPassword的电子邮件时,我收到此错误。

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 SMTP; 
Client was not authenticated to send anonymous mail during MAIL FROM [XXXXXXXXXX.xxxxxxxxx.prod.outlook.com]

我参考了以下链接和解决方案

5-7-57-smtp-client-was-not-authenticated-to-send

The-server-response-was-SMTP-Client-was-not-authen

5757-smtp-client-was-not-authenticated-to-send-anonymous-mail-during-mail-from

我尝试更改端口,添加了域名和凭据,将client.UseDefaultCredentials更改为false并置于credentials之上。

每次都会得到同样的错误,没有任何解决方案有帮助。

请建议是否有人有解决方案。

谢谢。

0 个答案:

没有答案