public function HTMLMailMime::setHtmlBody in HTML Mail 8
Same name and namespace in other branches
- 8.3 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 176 - Provides the MailMIME class for creating MIME-formatted email messages.
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);
}