TextBodyPartTransferEncoding Property |
Namespace: MailBee.Mime
When parsing existing messages, the mail transfer encoding is taken from Content-Transfer-Encoding header. If the text part does not contain this header, the value will be None. However, MailBee always decodes messages automatically so this property is just for information purposes only.
When composing new messages, you use this property to set mail transfer encoding to non-QuotedPrintable value. However, this can be useful under special circumstances only. Anyway, to change mail transfer encoding of HTML or plain-text parts of the message, it's easier to use and properties of the MailMessage itself.
// 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.BodyHtmlText = "<b>Hello</b>, <i>World</i>!"; msg.BodyParts.Html.TransferEncoding = MailTransferEncoding.Base64; msg.SaveMessage(@"C:\Docs\TestMail.eml");