无法通过Hotmail / live.com / Outlook.com发送电子邮件 [英] Cannot send email through Hotmail / live.com / outlook.com

查看:1849
本文介绍了无法通过Hotmail / live.com / Outlook.com发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了关于stackoverflow的其他答案。但是所有解决方案都不适合我。

I have read other answers on the stackoverflow. but none of the solutions work for me.

我正在尝试通过live.com发送电子邮件,但无法发送。

I'm trying to send email through live.com, but unable to it.

错误消息:

mailbox unavailable. The server response was: 5.7.3 requested action aborted;
user not authenticated

或错误消息:

System.Net.Mail.SmtpException: Service not available, 
closing transmission channel. 
The server response was: Cannot connect to SMTP server 65.55.176.126 
(65.55.176.126:587), NB connect error 1460

代码:

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);

您是否可以使用上述代码发送电子邮件?



我不知道live.com电子邮件服务器已更改了什么。

有什么新设置或参数应该适用吗?

Are you able to send the email by using above code?
It works before, last year, but it is no more working now.
I'm not sure what has been changed to live.com email server.
What new settings or parameters should apply?

推荐答案

我遇到了一个问题,无法使用smtp.live.com SMTP服务器发送电子邮件来自某些主机-特别是Azure主机。就我而言,SMTP尝试来自以前从未使用过的主机,因此该尝试被5.7.3错误阻止:

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:


邮箱不可用。服务器响应为:5.7.3请求的操作中止;用户未通过身份验证

Mailbox unavailable. The server response was: 5.7.3 requested action aborted; user not authenticated

解决方案是浏览到帐户设置,在其最近的活动中找到SMTP请求,然后选择这是我:

The solution was to browse to the account settings, locate the SMTP request in its recent activity, and select "This was me":

这篇关于无法通过Hotmail / live.com / Outlook.com发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆