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. 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 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