MsgConvertEmlToMsg Method (String, String)
Converts .EML data (in RFC822 text format) into a file in Outlook .MSG (OLE2) format with 8-bit encoding.

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

Parameters

emlFilename
Type: SystemString
The path to the source .EML file.
msgFilename
Type: SystemString
The path to the target Outlook .MSG file.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionemlFilename or msgFilename is a null reference (Nothing in Visual Basic).
MailBeeExceptionAn error occurred during reading, parsing or saving message data.
Remarks
If you need to have RTF body in the resulting MSG, see HtmlToRtfMethod property for the available options.
Examples
This sample converts .EML file into .MSG file.
// To use the code below, import these namespaces at the top of your code.
using MailBee;
using MailBee.Outlook;

// The actual code (put it into a method of your class).
MsgConvert conv = new MsgConvert();
conv.EmlToMsg(@"C:\Temp\test.eml", @"C:\Temp\test.msg");
See Also