Click here to Skip to main content
11,927,600 members (47,420 online)
Rate this:
Please Sign up or sign in to vote.
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>

I am looking for code to read only unread emails.

Could you please help me?
Posted 1-Sep-11 6:42am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Dan wrote in his msdn blog for unread mail using ExchangeServiceBinding. Plz refer at:[^]
vangapallynaveen 30-Jul-12 8:07am
Good link
GanesanSenthilvel 30-Jul-12 11:22am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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 !

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.1 | Last Updated 30 Jul 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100