Gets or sets plain-text version of the message body.
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.
[C#] // 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";
[Visual Basic] ' To use the code below, import MailBee namespaces at the top of your code. Imports MailBee Imports MailBee.SmtpMail Imports MailBee.Mime ' The actual code (put it into a method of your class) Dim mailer As New Smtp ' Specify plain-text body using multi-line string constant. mailer.BodyPlainText = "Multi-line body text" & vbCrLf & _ "Some more text here" & vbCrLf & vbCrLf & _ "Signature"
Smtp Class | MailBee.SmtpMail Namespace