是的,它现在支持
Microsoft 从旧式基础架构迁移到基于 Office 365 的最新基础架构
以下 c# 中的代码片段将通过 Outlook.com 的 EWS 发送 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 托管 API 文档