How to Create, Manage, and Use Distribution Lists in Exchange Server

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.

Create Distribution Lists

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

Fetch Private Distribution Lists

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

Create MailAddress from List ID

The following code snippet shows you how to create MailAddress from distribution list Id.

Expand Public Distribution Lists

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

Add Members

Add Members to Private Lists

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 to Private Distribution List

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

Delete Members

Delete Members from Private Lists

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.