Outlook阻止我从smtp c#应用程序发送邮件 [英] Outlook blocked me sending mails from smtp c# application

查看:166
本文介绍了Outlook阻止我从smtp c#应用程序发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经构建了一个桌面应用程序,可以使用 $发送邮件(outlook) b $ b smtp ,最初的邮件发送完美,但突然 outlook阻止我使用smtp 通过我的应用程序(第三方)发送邮件。请帮我解决这个问题。

I have built a desktop application which can send mails(outlook) using smtp, initially mails were sent perfect but all of a sudden outlook blocked me sending mails through my app(third party) using smtp. Please help me get through this.

PS:最初使用的端口 25 但是将其更改为 587
当它被阻止但无效时。

PS: Initially used port 25 but changed it to 587 when it got blocked but isn't working.

问题:如何修复它我的Outlook帐户中是否有任何第三方认证(就像在gmail中一样)或我的代码内部有任何其他修改? ..

这是我的代码

推荐答案

您是否尝试过订阅< a href ="https://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.sendcompleted%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396">
SendComplete事件以查看问题的详细信息?
Have you tried subscribing to SendComplete event to see the details of the issue?


这篇关于Outlook阻止我从smtp c#应用程序发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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