MimePartBoundary Property |
Namespace: MailBee.Mime
If the MIME part is multi-part (has one or more MIME parts nested into it), these sub-parts should be separated with a unique delimiter string. This string is specified in boundary attribute of the Content-Type header of the part header section.
For instance, if the MIME part header is Content-type: multipart/mixed; boundary="Boundary_(ID_frk7dChObvUn0w8y7BE4uQ)", the Boundary property will return Boundary_(ID_frk7dChObvUn0w8y7BE4uQ) value.
// 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(); msg.LoadMessage(@"C:\Docs\TestMail.eml"); // Show the boundary. Console.WriteLine(msg.MimePartTree.Boundary);