EWS Managed API How to get email attachments

Exchange Web Service
Exchange-Web-Service

This sample shows you how to use the Exchange Web Services EWS Managed API to get email attachments and ut it into FileStream.

Sample method:

The following method GetEmailAttachments accepts an instance of the ExchangeService class to connect to the Exchange Web Service.

In this method we retrieve the first email found after we run a query through EWS Managed API that filters on the existence of the attachements.

To start using EWS Managed API, see this article: http://dotnet-practice.com/utiliser-exchange-web-service-ews-managed-api/

 

Be the first to comment

Leave a Reply

Your email address will not be published.


*