MailMessageLoadMessage Method (String) |
Loads the message from the specified file.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public bool LoadMessage(
string filename
)
Public Function LoadMessage (
filename As String
) As Boolean
Parameters
- filename
- Type: SystemString
The path to the file containing the message in MIME format. The common extension of MIME files is .EML.
Return Value
Type:
Booleantrue if the message was successfully loaded; otherwise,
false.
Exceptions Remarks Examples This sample loads the message from .EML file and displays the subject of the message.
using MailBee;
using MailBee.Mime;
MailMessage msg = new MailMessage();
msg.LoadMessage(@"C:\Docs\TestMail.eml");
Console.WriteLine(msg.Subject);
Imports MailBee
Imports MailBee.Mime
Dim msg As New MailMessage
msg.LoadMessage("C:\Docs\TestMail.eml")
Console.WriteLine(msg.Subject)
See Also