public static void Run()
{
//ExStart:ConvertMSGToMIMEMessage
MapiMessage msg = new MapiMessage("[email protected]","[email protected]; [email protected]","Test Subject","This is a body of message.");
var options = new MailConversionOptions();
options.ConvertAsTnef = true;
MailMessage mail = msg.ToMailMessage(options);
//ExEnd:ConvertMSGToMIMEMessage
}
}