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

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

Property Value

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

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.

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

See Also