Manage Distribution Lists on Exchange Server with EWS
Aspose.Email for C++ provides full support for creating, reading, updating, and deleting Exchange distribution lists through the IEWSClient. Using EWS, you can manage private and public distribution lists, add or remove members, fetch list details, and send messages to distribution lists programmatically.
Create a Distribution List
Use CreateDistributionList() to create a new private distribution list and define its members.
Fetch a Private Distribution List
The following code snippet shows you how to retrieve all private lists and enumerate their members.
Expand a Public Distribution List
The following code snippet shows you how to expand public lists by supplying their email address.
Add Members to a Private Distribution List
Add after Listing
The following code snippet shows you how to add members to a private distribution list.
Add without Listing
The following code snippet shows you how to add members without listing.
Send Email to a Private Distribution List
The following code snippet shows you how to send emails to a private distribution list.
Delete Members from a Private Distribution List
Delete after Listing
The following code snippet shows you how to delete members from a private distribution list.
Delete without Listing
The following code snippet shows you how to delete members without listing.
Delete a Private Distribution List
Delete after Listing
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.