MsgConvertMailMessageToMsg Method (MailMessage, String)
Saves the specified MailMessage as Outlook .MSG file.

Namespace: MailBee.Outlook
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public void MailMessageToMsg(
	MailMessage msg,
	string msgFilename
)

Parameters

msg
Type: MailBee.MimeMailMessage
MailMessage to be saved.
msgFilename
Type: SystemString
The path to the target .MSG file.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionmsg or msgFilename is a null reference (Nothing in Visual Basic).
MailBeeExceptionAn error occurred during saving message data.
Remarks
If you need to have RTF body in the resulting MSG, see HtmlToRtfMethod property for the available options.
See Also