Exports the message to System.Net.Mail.MailMessage object.
A System.Net.Mail.MailMessage object representing the current mail message.
The conversion may fail in case of unusual header values (such as X400 e-mail addresses) because System.Net.Mail.MailMessage class does not support them. You can read such a mail message with MailBee but not with System.Net.Mail.MailMessage. Thus, if your mail message contains elements which are not supported by System.Net.Mail.MailMessage, you should remove or correct them prior to calling this method.
Note System.Net.Mail.MailMessage exists only in .NET framework 2.0 and above.
| Exception Type | Condition |
|---|---|
| ArgumentException | System.Net.Mail.MailMessage object has failed to parse some fields of the mail message. This exception is thrown by System.Net.Mail.MailMessage object, not by MailBee. |
MailMessage Class | MailBee.Mime Namespace