SmtpBodyPlainText Property |
Namespace: MailBee.SmtpMail
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.
// 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";