public function HtmlMailMime::setHtmlBody in HTML Mail 8.3
Same name and namespace in other branches
- 8 src/Utility/HTMLMailMime.php \Drupal\htmlmail\Utility\HTMLMailMime::setHtmlBody()
Sets the text/html part of the message.
Parameters
string $data: Either the text/html data or the name of a file containing the data.
bool $is_file: (optional) TRUE if $data is a filename. Defaults to FALSE.
Return value
bool TRUE if successful; otherwise FALSE.
File
- src/
Utility/ HtmlMailMime.php, line 186
Class
- HtmlMailMime
- Class HtmlMailMime.
Namespace
Drupal\htmlmail\UtilityCode
public function setHtmlBody($data, $is_file = FALSE) {
$html_body = parent::setHTMLBody($data, $is_file);
return self::successful($html_body);
}