Archiving Exchange Emails Using EWS API

Contents
[ ]

Aspose.Email for .NET offers a comprehensive API to manage and process emails on an Exchange Server. This guide demonstrates how to list emails in the Inbox folder of an Exchange mailbox and archive them programmatically using the IEWSClient interface. The IEWSClient.ArchiveItem method of the IEWSClient interface allows you to move items into users archive mailbox. It provides four overloads which are listed below:

The following code sample demonstrates how to use Aspose.Email to connect to the Exchange server, list messages, and archive them with the IEWSClient.ArchiveItem method. Storing emails is achieved by moving each item to the Archive Mailbox using the UniqueUri.