Click here to Skip to main content
11,484,640 members (59,231 online)
Rate this: bad
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></domain></password></user_id>

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 at 30-Jul-12 8:07am
Good link
GanesanSenthilvel at 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
0 Maciej Los 190
1 Sergey Alexandrovich Kryukov 180
2 Raje_ 155
3 OriginalGriff 147
4 Mehdi Gholam 120
0 Sergey Alexandrovich Kryukov 8,484
1 OriginalGriff 7,948
2 Sascha Lefèvre 3,199
3 Maciej Los 2,681
4 Richard Deeming 2,370

Advertise | Privacy | Mobile
Web04 | 2.8.150520.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