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

Namespace: MailBee.Outlook
Assembly: MailBee.NET.45 (in MailBee.NET.45.dll) Version: 10.0.45.502
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.
See Also