gpt4 book ai didi

exchange-server - Outlook.com 是否支持 EWS?

转载 作者:行者123 更新时间:2023-12-05 08:44:03 24 4
gpt4 key购买 nike

Outlook.com 是否支持 EWS?如果不是,使用 python 访问用户任务和日历的不同方法是什么?

到目前为止,我已经完成了以下工作:

二手 EWSWrapper并尝试使用 suds-ews with python .当我尝试使用 outlook.com 帐户时,所有这些实现都失败了。

所以这是我想知道的:

  • 如果 EWS 不可用,我还可以通过哪些其他方式来检索任务和日历列表。
  • 有没有我可以使用的 python 库,它考虑了 2007 年早些时候的交换服务器,以及 2010 年到 2013 年较新的服务器,并进行了基本的错误处理。

感谢任何帮助。

最佳答案

Yes it supports now

Microsoft migrated from the legacy infrastructure to latest Office 365 based infrastructure

C# 中的以下代码片段将通过 EWS 从 outlook.com 发送 HelloWorld 消息

var service = new ExchangeService
{
TraceEnabled = true,
TraceFlags = TraceFlags.All,
Credentials = new WebCredentials("user@outlook.com", "p@ssw0rd"),
Url = new Uri("https://outlook.com/EWS/Exchange.asmx")
};

var email = new EmailMessage(service);

email.ToRecipients.Add("recipient@outlook.com");
email.Subject = "HelloWorld";
email.Body = new MessageBody("This is the first email I've sent by using the EWS Managed API.");
email.Send();

有关更多代码示例,请访问 EWS Managed API docs

关于exchange-server - Outlook.com 是否支持 EWS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17609863/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com