How to download emails from exchange server using C#.net
How to download emails from exchange server using C#.net?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Nov 18, 2013, 1:56 AM
http://www.aspose.com/docs/display/emailnet/Download+Messages+from+Public+Folders+of+Exchange+Server
SanthoshPosted Nov 19, 2009, 6:55 AM
Lalit MPosted Nov 19, 2009, 2:31 AM
--------------------------------
This article demonstrates how to use Exchange Webservices (EWS), as found on Exchange 2007 SP1 and going forward, to extract email body, headers and other email related items without using or needed Outlook installed. Note this assumes you are using Visual Studio 2008 and
1.ExchangeService service =newExchangeService(ExchangeVersion.Exchange2007_SP1);2.3.//service.Credentials = new NetworkCredential( "{Active Directory ID}", "{Password}", "{Domain Name}" );4.5.service.AutodiscoverUrl("[email protected]");1.FindItemsResults- findResults = service.FindItems(
2.WellKnownFolderName.Inbox,3.newItemView( 10 ) );4.5.foreach( Item iteminfindResults.Items )6.Console.WriteLine( item.Subject );That should get you started. Again check the Getting Started document which the install dropped into the install folder for more examples!
related links