EWS Managed API How to Create attachments on Exchange items programmatically

Exchange Web Service
Exchange-Web-Service

This sample shows you how to use the Exchange Web Services EWS Managed API to Create attachments on Exchange items programmatically.

Sample method: Create attachments on Exchange items

The following method CreateAttachments accepts an instance of the ExchangeService class to connect to the Exchange Web Service and will create attachments:

  1. prompts the user to select a file attachment.
  2. Attaches the file attachment to the email message in three different ways
  3. Finds an email message to use as an item attachment
  4. Adds the item attachment to an email message.

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

EWS Managed API How to get email attachments: http://dotnet-practice.com/ews-managed-api-get-email-attachments/

Be the first to comment

Leave a Reply

Your email address will not be published.


*