MailMessageRawHeader Property |
Gets the message header section exactly as it is contained in the message.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public string RawHeader { get; }
Public ReadOnly Property RawHeader As String
Get
Property Value
Type:
String
A string containing the full header of the message.
Remarks
To get the entire source of the message including its header and body sections, use
GetMessageRawData method.
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.
|
Examples This sample loads the message from .EML file and displays the raw header of this message.
using MailBee;
using MailBee.Mime;
MailMessage msg = new MailMessage();
msg.LoadMessage(@"C:\Docs\TestMail1.eml");
Console.WriteLine(msg.RawHeader);
Imports MailBee
Imports MailBee.Mime
Dim msg As New MailMessage
msg.LoadMessage("C:\Docs\TestMail1.eml")
Console.WriteLine(msg.RawHeader)
See Also