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