Saves a message into the specified file.
true if the message was successfully saved; otherwise, false.
The common file extension of e-mails in MIME format is .EML.
The developer can use LoadMessage method to load the previously saved message.
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | filename is a null reference (Nothing in Visual Basic) or an empty string. |
| MailBeeIOException | An I/O error occurred and ThrowExceptions is true. |
The example is available in MailMessage class overview.
MailMessage Class | MailBee.Mime Namespace | MailMessage.SaveMessage Overload List | LoadMessage