Click here to Skip to main content
11,577,710 members (39,942 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 5: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 DamithSL 180
1 Peter Leow 180
2 Richard MacCutchan 125
3 Abhinav S 125
4 OriginalGriff 115
0 OriginalGriff 820
1 Sergey Alexandrovich Kryukov 681
2 Abhinav S 528
3 F-ES Sitecore 420
4 Suvendu Shekhar Giri 375

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