MailMessageSaveMessage Method (String)
Saves a message into the specified file.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public bool SaveMessage(
	string filename
)

Parameters

filename
Type: SystemString
The name of the file where it should be saved.

Return Value

Type: Boolean
true if the message was successfully saved; otherwise, false.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionfilename is a null reference (Nothing in Visual Basic) or an empty string.
MailBeeIOExceptionAn I/O error occurred and ThrowExceptions is true.
Remarks

The common file extension of e-mails in MIME format is .EML. If you need to produce an .MSG file which can be opened by MS Outlook, use methods of MsgConvert class.

The developer can use LoadMessage(String) method to load the previously saved message.

Examples
The example is available in MailMessage class overview.
See Also