如何在 ASP.NET 中使用 Exchange Web 服务下载未读电子邮件附件?
我正在使用 Exchange Server 2007 SP3
,并且我能够使用以下代码连接 Exchange Web 服务
ExchangeServiceBinding esb = new ExchangeServiceBinding();
esb.RequestServerVersionValue = new RequestServerVersion();
esb.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2007_SP1;
esb.Credentials = new NetworkCredential("<user_id>", "<password>", "<domain>");
esb.Url = @"https://<server_fqdn>/ews/Exchange.asmx";
我正在寻找下载未读附件的代码。
请你帮助我好吗?
I am using Exchange Server 2007 SP3
and I am able to connect exchange web service using following code
ExchangeServiceBinding esb = new ExchangeServiceBinding();
esb.RequestServerVersionValue = new RequestServerVersion();
esb.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2007_SP1;
esb.Credentials = new NetworkCredential("<user_id>", "<password>", "<domain>");
esb.Url = @"https://<server_fqdn>/ews/Exchange.asmx";
I am looking for code to download unread attachment.
Could you please help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了这一点:
然后从方法
ProcessItem
你可以做任何你想做的事情,比如下载附件等等......来源:使用 EWS 托管 API 处理 Exchange 文件夹中的项目
I have found this:
then from the method
ProcessItem
you do whatever you want to do like download attachments and so on...source: Processing items in an Exchange folder using EWS Managed API