在我的应用程序中发送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
之上。
每次都会得到同样的错误,没有任何解决方案有帮助。
请建议是否有人有解决方案。
谢谢。