0

微软似乎想开始禁用 Exchange Online 的基本身份验证,并提到结束对 EWS 协议的支持 https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-and-exchange-online-february-2021 -更新/ba-p/2111904

我们正在使用Microsoft.Exchange.WebServices.2.2库从 EWS 收件箱中获取电子邮件,如下所示:

var service = new ExchangeService(ExchangeVersion.Exchange2010);
service.Credentials = new NetworkCredential(username, password, domain);
var findResults = service.FindItems(WellKnownFolderName.Inbox, new ItemView(int.MaxValue));

这会在不久的将来被禁用吗?我们应该改变访问电子邮件的方式吗?

4

0 回答 0