如何在ASP.NET中使用Exchange Web服务读取未读电子邮件 [英] How to read unread email using Exchange web service in ASP.NET
本文介绍了如何在ASP.NET中使用Exchange Web服务读取未读电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Exchange Server 2007 SP3
我可以使用以下代码连接Exchange Web服务
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";</server_fqdn></domain></password></user_id>
我正在寻找仅读取未读电子邮件的代码.
I am looking for code to read only unread emails.
Could you please help me?
推荐答案
http://www.independentsoft.de/exchangewebservices/tutorial/findunreadmessages.html
Dan在他的msdn博客中使用ExchangeServiceBinding编写了未读邮件.请参阅: ^ ]Dan wrote in his msdn blog for unread mail using ExchangeServiceBinding. Plz refer at: http://blogs.msdn.com/b/webdav_101/archive/2007/11/29/ews-csharp-list-unread-inbox-messages-using-a-restriction.aspx[^]
如果您是Exchange Web Services(EWS)的新手,我建议您阅读Brij [检查Microsoft Exchange部分].
Microsoft Exchange [使用Exchange Server 2007(EWS)编程-第2部分 [Getting the Count of the Unread Items in a Specified Folder"
哪个可以为您完成工作.
希望这会有所帮助!Well as you are new in Exchange Web Services ( EWS ) , I will suggest you to read this series of articles form Brij [ Check For Microsoft Exchange Section ] .
Microsoft Exchange[^]
If you check the Second Article,
Programming With Exchange Server 2007 (EWS) - Part 2[^], there is a section "Getting the Count of the Unread Items in a Specified Folder
"
Which will do the job for you.
Hope this will help !
这篇关于如何在ASP.NET中使用Exchange Web服务读取未读电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文