我已经阅读了stackoverflow上的其他答案。 但没有一个解决方案适用于我。
我试图通过live.com发送电子邮件,但无法发送。
错误消息:
mailbox unavailable. The server response was: 5.7.3 requested action aborted; user not authenticated代码:
MailMessage mail = new MailMessage(); mail.From = new MailAddress("email@live.com"); mail.To.Add("someone@someone.com"); mail.Subject = "hello"; mail.Body = "awefkljj kawefl"; mail.IsBodyHtml = false; SmtpClient smtp = new SmtpClient("smtp.live.com", 587); smtp.EnableSsl = true; smtp.Credentials = new NetworkCredential("email@live.com", "password"); smtp.Send(mail);您是否可以使用上述代码发送电子邮件?
它在去年之前有效,但现在不再有效。
什么改变了?
I have read other answers on the stackoverflow. but none of the solutions work for me.
I'm trying to send email through live.com, but unable to it.
The error message:
mailbox unavailable. The server response was: 5.7.3 requested action aborted; user not authenticatedThe code:
MailMessage mail = new MailMessage(); mail.From = new MailAddress("email@live.com"); mail.To.Add("someone@someone.com"); mail.Subject = "hello"; mail.Body = "awefkljj kawefl"; mail.IsBodyHtml = false; SmtpClient smtp = new SmtpClient("smtp.live.com", 587); smtp.EnableSsl = true; smtp.Credentials = new NetworkCredential("email@live.com", "password"); smtp.Send(mail);Are you able to send the email by using above code?
It works before, last year, but it is no more working now.
What had been changed?
最满意答案
我遇到了一个问题,我无法使用特定主机上的smtp.live.com SMTP服务器发送电子邮件 - 特别是Azure主机。 在我的情况中,SMTP尝试来自我以前从未使用过的主机,因此尝试被5.7.3错误阻止:
信箱不可用。 服务器响应是:5.7.3请求的操作中止; 用户未通过身份验证
解决方案是浏览到帐户设置,在最近的活动中找到SMTP请求,然后选择“这就是我”:
I ran into an issue where I was unable to send emails using the smtp.live.com SMTP server from certain hosts -- particulary Azure hosts. In my case, the SMTP attempt was from a host that I had never used to sign-in previously, so the attempt was blocked with the 5.7.3 error:
Mailbox unavailable. The server response was: 5.7.3 requested action aborted; user not authenticated
The solution was to browse to the account settings, locate the SMTP request in its recent activity, and select "This was me":
更多推荐
发布评论