You are here

public function MailMIME::setTXTBody in Mail MIME 8.2

Same name and namespace in other branches
  1. 6.2 mailmime.inc \MailMIME::setTXTBody()
  2. 6 mailmime.inc \MailMIME::setTXTBody()
  3. 7.2 mailmime.inc \MailMIME::setTXTBody()
  4. 7 mailmime.inc \MailMIME::setTXTBody()

Set the text/plain part of the message.

Parameters

$data: Either the text/plain data or the name of a file containing data.

$is_file: (optional) TRUE if $data is a filename. Defaults to FALSE.

$append: (optional) TRUE to append the data to the exiting text/plain part, or FALSE to overwrite existing data. Defaults to FALSE.

Return value

TRUE if successful; otherwise FALSE.

File

./mailmime.inc, line 184
Provides the MailMIME class for creating MIME-formatted email messages.

Class

MailMIME
The MailMIME class is used to create MIME email messages.

Code

public function setTXTBody($data, $is_file = FALSE, $append = FALSE) {
  return self::successful(parent::setTXTBody($data, $is_file, $append));
}