SmtpBodyPlainText Property
Gets or sets plain-text version of the message body.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public string BodyPlainText { get; set; }

Property Value

Type: String
A string containing the message body as plain-text.
Remarks

This property is equivalent to BodyPlainText property of Message object.

The developer can get plain-text version of the message body from the HTML version by either calling MakePlainBodyFromHtmlBody of Message object or by setting HtmlToPlainMode property of Builder object to IfHtml value.

By default, the message body is encoded using QuotedPrintable content transfer encoding. If required, the developer can change this using MailTransferEncodingPlain property of Message object.

Examples
Specifying plain-text body of the message.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.SmtpMail;
using MailBee.Mime;

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

Smtp mailer = new Smtp();

// Specify plain-text body using multi-line string constant.
mailer.BodyPlainText = @"Multi-line body text
Some more text here

Signature";
See Also