PstItemGetAsMailMessage Method
Gets this PST object as MailMessage object.

Namespace: MailBee.Outlook
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public virtual MailMessage GetAsMailMessage()

Return Value

Type: MailMessage
A MailMessage object with "X-Pst" headers set.
Remarks
This method is useful if you want to work with this item as a MailMessage object (for instance, if you want to save it into an .EML file). This method produces an empty mail message and adds all the PstFields as the message headers. The header name would be "X-Pst-" + PST field name while the header value would be the value of the corresponding PST field converted into a string. Values of binary fields (e.g. ConversationIndex) are converted into base64 strings, values of other types (strings, dates, numbers, booleans) are produced with ToString.
See Also