diff --git a/include/class.mailer.php b/include/class.mailer.php index e5165ba697cc708b6fd3f4383f2e44a84c93b5a3..a53fcfc178c3c3864a962e4dba4fb63693222934 100644 --- a/include/class.mailer.php +++ b/include/class.mailer.php @@ -141,7 +141,7 @@ class Mailer { // the message appears to be HTML -- that is, the first // non-whitespace char is a '<' character if (!(isset($options['text']) && $options['text']) - && preg_match('/^\s*</', $message)) { + && $cfg->isHtmlThreadEnabled()) { // Make sure nothing unsafe has creeped into the message $message = Format::safe_html($message); //XXX?? $mime->setTXTBody(Format::html2text($message, 90, false));