Gets the name of the mail transfer encoding of the MIME part.
A string containing the name of the mail transfer encoding of the MIME part, or an empty string if the mail transfer encoding information is not available.
The value of this property is taken from Content-Transfer-Encoding header. The examples of such encodings are Base64, Quoted-Printable, etc. If missing, this the mail transfer encoding is not used and the MIME part data should be read as is.
Note This value is for advanced use only. You do not need to manually decode MIME part data because MailBee always decodes it automatically.
This sample loads the message from .EML file and displays the mail transfer encoding of the root MIME part.
[C#] // 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). MailMessage msg = new MailMessage(); msg.LoadMessage(@"C:\Docs\TestMail.eml"); Console.WriteLine(msg.MimePartTree.MailEncodingOriginal);
[Visual Basic] ' To use the code below, import MailBee namespaces at the top of your code. Imports MailBee Imports MailBee.Mime ' The actual code (put it into a method of your class). Dim msg As New MailMessage msg.LoadMessage("C:\Docs\TestMail.eml") Console.WriteLine(msg.MimePartTree.MailEncodingOriginal)
MimePart Class | MailBee.Mime Namespace | MailTransferEncoding