Create and Manage Outlook Voting Options
Microsoft Outlook allows users to add voting buttons (such as Yes, No, Maybe) when composing emails to collect quick responses. Aspose.Email for C++ provides full support for creating, modifying, and reading these voting options programmatically through the FollowUpOptions and FollowUpManager classes.
In this article, you will learn to:
- Create a message with voting options
- Read voting options from a MapiMessage
- Add or remove voting buttons
- Retrieve vote results
- Work with existing or new messages
Reading Voting Options from a MAPI Message
Use FollowUpManager::GetOptions to read all follow-up settings, including voting buttons.
The following code sample demonstrates how to extract follow-up options and voting buttons from an Outlook message file using Aspose.Email for C++.
Reading Only Voting Buttons
The following code snippet shows you how to read only voting buttons.
Adding a Voting Button to an Existing Message
The following code sample demonstrates how to add a custom voting option (“Indeed!”) to an existing Outlook message. The modified message is then saved back to a new MSG file.
Deleting Voting Buttons from a Message
Remove a single option or clear all voting buttons.
Reading Vote Results Information
Aspose.Email allows you to extract recipient responses recorded by Outlook.