MailBee.NET Objects 7.1

MailMessage.ConvertToSystemNetMail Method 

Exports the message to System.Net.Mail.MailMessage object.

public MailMessage ConvertToSystemNetMail();

Return Value

A System.Net.Mail.MailMessage object representing the current mail message.

Remarks

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.

Exceptions

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.

See Also

MailMessage Class | MailBee.Mime Namespace