Aspose.Email.Examples.CSharp.Email.Exchange.CreateAndSendingMessageWithVotingOptions.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        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
        }
CreateAndSendingMessageWithVotingOptions