Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Lalit MRank #1,186 · 1.5K reputationPosted Nov 18, 2009, 9:31 PM EST
--------------------------------
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
Santhosh6 reputationPosted Nov 19, 2009, 1:55 AM EST
Posted Nov 17, 2013, 8:56 PM EST
http://www.aspose.com/docs/display/emailnet/Download+Messages+from+Public+Folders+of+Exchange+Server