public static void Run()
        {
            // The path to the File directory.
            string dataDir = RunExamples.GetDataDir_Outlook();

            MapiMessage msg = CreateTestMessage(false);

            FollowUpOptions options = new FollowUpOptions();
            options.VotingButtons = "Yes;No;Maybe;Exactly!";

            FollowUpManager.SetOptions(msg, options);

            msg.Save(dataDir+ "MapiMsgWithPoll.msg");            
        }
        public static void Run()
        {
            // ExStart:CreateAndSendingMessageWithVotingOptions
            string address = "*****@*****.**";

            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
        }
        public static void Run()
        {
            // ExStart:ReadVotingOptionsFromMapiMessage
            // The path to the File directory.
            string dataDir = RunExamples.GetDataDir_Outlook();

            // Create new Message
            MapiMessage msg = CreateTestMessage(false);

            // Set FollowUpOptions Properties
            FollowUpOptions options = new FollowUpOptions();
            options.VotingButtons = "Yes;No;Maybe;Exactly!";

            FollowUpManager.SetOptions(msg, options);
            msg.Save(dataDir+ "MapiMsgWithPoll.msg");
            // ExEnd:ReadVotingOptionsFromMapiMessage

        }
        public static void Run()
        {
            // ExStart:DeletVotingButtonFromMessage
            // The path to the File directory.
            string dataDir = RunExamples.GetDataDir_Outlook();

            // Create New Message and set FollowUpOptions, FollowUpManager properties
            MapiMessage msg = CreateTestMessage(false);

            FollowUpOptions options = new FollowUpOptions();
            options.VotingButtons = "Yes;No;Maybe;Exactly!";
            FollowUpManager.SetOptions(msg, options);
            msg.Save(dataDir + "MapiMsgWithPoll.msg");
            FollowUpManager.RemoveVotingButton(msg, "Exactly!"); // Deleting a single button OR
            FollowUpManager.ClearVotingButtons(msg); // Deleting all buttons from a MapiMessage
            msg.Save(dataDir + "MapiMsgWithPoll.msg");
            // ExEnd:DeletVotingButtonFromMessage
        }
        public static void Run()
        {
            //ExStart:SetFollowUpflag
            // The path to the File directory.
            string dataDir = RunExamples.GetDataDir_Outlook();

            MailMessage mailMsg = new MailMessage();
            mailMsg.Sender = "*****@*****.**";
            mailMsg.To = "*****@*****.**";
            mailMsg.Body = "This message will test if follow up options can be added to a new mapi message.";
            MapiMessage mapi = MapiMessage.FromMailMessage(mailMsg);

            DateTime dtStartDate = new DateTime(2013, 5, 23, 14, 40, 0);
            DateTime dtReminderDate = new DateTime(2013, 5, 23, 16, 40, 0);
            DateTime dtDueDate = dtReminderDate.AddDays(1);

            FollowUpOptions options = new FollowUpOptions("Follow Up", dtStartDate, dtDueDate, dtReminderDate);
            FollowUpManager.SetOptions(mapi, options);
            mapi.Save(dataDir + "SetFollowUpflag_out.msg");
            //ExEnd:SetFollowUpflag
        }
Example #6
0
        public static void Run()
        {
            //ExStart:SetFollowUpflag
            // The path to the File directory.
            string dataDir = RunExamples.GetDataDir_Outlook();

            MailMessage mailMsg = new MailMessage();

            mailMsg.Sender = "*****@*****.**";
            mailMsg.To     = "*****@*****.**";
            mailMsg.Body   = "This message will test if follow up options can be added to a new mapi message.";
            MapiMessage mapi = MapiMessage.FromMailMessage(mailMsg);

            DateTime dtStartDate    = new DateTime(2013, 5, 23, 14, 40, 0);
            DateTime dtReminderDate = new DateTime(2013, 5, 23, 16, 40, 0);
            DateTime dtDueDate      = dtReminderDate.AddDays(1);

            FollowUpOptions options = new FollowUpOptions("Follow Up", dtStartDate, dtDueDate, dtReminderDate);

            FollowUpManager.SetOptions(mapi, options);
            mapi.Save(dataDir + "SetFollowUpflag_out.msg");
            //ExEnd:SetFollowUpflag
        }