Saves the message into the specified .XML file.
true if the message was successfully saved to .XML file; otherwise, false.
The saved message can be loaded back with Deserialize method.
| 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 Deserialize method documentation.
MailMessage Class | MailBee.Mime Namespace | MailMessage.Serialize Overload List | Deserialize