You are here

public function HtmlMailMime::setTxtBody in HTML Mail 8.3

Same name and namespace in other branches
  1. 8 src/Utility/HTMLMailMime.php \Drupal\htmlmail\Utility\HTMLMailMime::setTxtBody()

Set the text/plain part of the message.

Parameters

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

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

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

Return value

bool TRUE if successful; otherwise FALSE.

File

src/Utility/HtmlMailMime.php, line 170

Class

HtmlMailMime
Class HtmlMailMime.

Namespace

Drupal\htmlmail\Utility

Code

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