使用 EWS Managed 从 MS Exchange (O365) 检索电子邮件 API

Retrieve email from MS Exchange (O365) using EWS Managed API

要求:从 WinForms 应用程序 (.Net Framework 4.0, C#) 连接到 MicroSoft Exchange 2013 并检索电子邮件,从而将附件保存到本地驱动器。不使用 OutlookVBA 来检索电子邮件。

理想的解决方案是使用 .Net 程序中的 Exchange Web Services Managed API 并使用适当的方法检索电子邮件。

但是,这个场景中的Exchange服务器是基于云的Office365,.Net程序是从本地Visual Studio 2010 IDE开发的。从基于 Azure 开发平台的程序访问基于云的 (Office365) Exchange 服务器,以及从基于本地 Visual Studio IDE 的程序访问本地 MicroSoft Exchange Server 似乎是一种做法。

所以我想检查我是否真的可以使用 EWS Managed API 从本地托管 Visual Studio IDE 中开发的程序连接到 Office365 MS Exchange 邮箱。

是的,你可以。如果您想自己尝试,请从 CodePlex.com 下载 EWSEditor 并试用。