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
}
}