MsgConvertMsgToEml Method (String, String)
Converts Outlook .MSG file (in OLE2 binary format) into .EML file (in RFC822 MIME format).

Namespace: MailBee.Outlook
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public void MsgToEml(
	string msgFilename,
	string emlFilename
)

Parameters

msgFilename
Type: SystemString
The path to the source Outlook .MSG file.
emlFilename
Type: SystemString
The path to the target .EML file.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionmsgFilename or emlFilename is a null reference (Nothing in Visual Basic).
MailBeeExceptionAn error occurred during reading, parsing or saving message data.
Examples
This sample converts .MSG file into .EML 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.MsgToEml(@"C:\Temp\test.msg", @"C:\Temp\test.eml");
See Also