public static void Run()
{
// ExStart:CreateAndSendingMessageWithVotingOptions
string address = "[email protected]";
IEWSClient client = EWSClient.GetEWSClient("https://outlook.office365.com/ews/exchange.asmx", "testUser", "pwd", "domain");
MailMessage message = CreateTestMessage(address);
// Set FollowUpOptions Buttons
FollowUpOptions options = new FollowUpOptions();
options.VotingButtons = "Yes;No;Maybe;Exactly!";
client.Send(message, options);
// ExEnd:CreateAndSendingMessageWithVotingOptions
}