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.OutlookAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public void EmlToMsg(
string emlFilename,
string msgFilename
)
Public Sub EmlToMsg (
emlFilename As String,
msgFilename As String
)
Parameters
- emlFilename
- Type: SystemString
The path to the source .EML file. - msgFilename
- Type: SystemString
The path to the target Outlook .MSG file.
Exceptions 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.
using MailBee;
using MailBee.Outlook;
MsgConvert conv = new MsgConvert();
conv.EmlToMsg(@"C:\Temp\test.eml", @"C:\Temp\test.msg");
Imports MailBee
Imports MailBee.Outlook
Dim conv As MsgConvert = New MsgConvert
conv.EmlToMsg("C:\Temp\test.eml", "C:\Temp\test.msg")
See Also