EWS Managed API How to Create Inbox rules programmatically on Exchange servers

Exchange Web Service

This sample shows you how to use the Exchange Web Services EWS Managed API to create a server-side Inbox rule for an Exchange mailbox programmatically.

Sample method:

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

In This method we create an inbox rule called NewsLetters that will move all Email that contains the word NewLetter in their subjects.

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.