MailMessageRawHeader Property
Gets the message header section exactly as it is contained in the message.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public string RawHeader { get; }

Property Value

Type: String
A string containing the full header of the message.
To get the entire source of the message including its header and body sections, use GetMessageRawData method.
Note Note
In MIME, the header of the message constists of name-value pairs which are also called headers. RawHeader refers to the former (also known as "full header"). Similar reusage of the same term takes place for a body. In MIME, a body section is the remaining part of the message after the header section. It includes attachments and text bodies of a message. The entire source of the message (the header section and the body section) is often called raw body.
This sample loads the message from .EML file and displays the raw header of this message.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Mime;

// The actual code (put it into a method of your class)

// Load the message from file.
MailMessage msg = new MailMessage();

See Also