MsgConvertMailMessageToMsg Method (MailMessage, Stream)
Saves the specified MailMessage into a stream in Outlook .MSG (OLE2) format.

Namespace: MailBee.Outlook
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public void MailMessageToMsg(
	MailMessage msg,
	Stream msgStream
)

Parameters

msg
Type: MailBee.MimeMailMessage
MailMessage to be saved.
msgStream
Type: System.IOStream
The target stream where to save message data in Outlook .MSG format.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionmsg or msgStream 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