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.45 (in MailBee.NET.45.dll) Version: 10.0.45.502
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.
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