Working with Distribution Lists on Exchange Server

Working with Distribution Lists

Aspose.Email API provides the capability to create and read distributions lists from the Exchange server. Distribution lists can be created on the server as well as members can be added to it using the IEWSClient. This article shows how to work with distribution lists on the Exchange server.

Creating a Distribution List

The following code snippet shows you how to create a distribution list.

Fetch Private Distribution List

The following code snippet shows you how to fetch a private distribution list.

Expand Public Distribution List

The following code snippet shows you how to expand the public distribution List.

Adding members

Adding members to a Private Distribution List

The following code snippet shows you how to add members to a private distribution list.

Add members without listing

The following code snippet shows you how to add members without listing.

Send Email to Private Distribution List

The following code snippet shows you how to send emails to a private distribution list.

Deleting members

Deleting members from Private Distribution List

The following code snippet shows you how to delete members from a private distribution list.

Delete members without listing

The following code snippet shows you how to delete members without listing.

Delete Private Distribution List

The following code snippet shows you how to delete a private distribution list.

Delete without Listing

The following code snippet shows you how to delete without listing.