Check HERE: something similar already discussed.
Mainly, you can use :
If you will use EWS here is some sample :
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); // depends from Exchange server version
//service.Credentials = new NetworkCredential( "{Active Directory ID}", "{Password}", "{Domain Name}" );
service.AutodiscoverUrl( "[email protected]" );
FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox,
new ItemView( 10 ) );
foreach ( Item item in findResults.Items )
{
Console.WriteLine( item.Subject );
}