smtp.live.com - 邮箱不可用。服务器响应是:5.7.3请求的操作中止;用户未认证 [英] smtp.live.com - mailbox unavailable. The server response was: 5.7.3 requested action aborted; user not authenticated
问题描述
我正在通过live.com发送电子邮件,但无法发送。
错误信息:
邮箱不可用。服务器响应是:5.7.3请求的操作中止;
用户未认证
代码:
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,密码);
smtp.Send(mail);
您是否可以使用上述代码发送电子邮件?
它在去年之前工作,但现在不再工作。
发生了什么变化?
我遇到一个问题,我无法使用特定主机的smtp.live.com SMTP服务器发送电子邮件 - 特别是Azure主机。在我的情况下,SMTP尝试是从以前从未登录过的主机,所以尝试被阻止与5.7.3错误:
邮箱不可用。服务器响应是:5.7.3请求的操作中止;用户未认证
解决方案是浏览到帐户设置,在最近的活动中找到SMTP请求,并选择这是我:
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 authenticated
The 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?
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":
这篇关于smtp.live.com - 邮箱不可用。服务器响应是:5.7.3请求的操作中止;用户未认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!