Aspose.Email.Examples.CSharp.Email.Outlook.DeleteVotingButtonFromMessage.CreateTestMessage C# (CSharp) Method

CreateTestMessage() private static method

private static CreateTestMessage ( bool draft ) : MapiMessage
draft bool
return MapiMessage
        private static MapiMessage CreateTestMessage(bool draft)
        {
            // ExEnd:CreateTestMessage
            MapiMessage msg = new MapiMessage(
            "[email protected]",
            "[email protected]",
            "Flagged message",
            "Make it nice and short, but descriptive. The description may appear in search engines' search results pages...");

            if (!draft)
            {
                msg.SetMessageFlags(msg.Flags ^ MapiMessageFlags.MSGFLAG_UNSENT);
            }
            return msg;
            // ExEnd:CreateTestMessage
        }
    }
DeleteVotingButtonFromMessage