diff --git a/include/class.mailer.php b/include/class.mailer.php index a57f8d7be1ac5b7e15f79fd3d8430cbfd2d58819..21a7d157d68a28191b88e798dade0633d3c15725 100644 --- a/include/class.mailer.php +++ b/include/class.mailer.php @@ -139,12 +139,11 @@ class Mailer { $mime = new Mail_mime(); + // If the message is not explicitly declared to be a text message, + // then assume that it needs html processing to create a valid text + // body $isHtml = true; - // Ensure that the 'text' option / hint is not set to true and that - // the message appears to be HTML -- that is, the first - // non-whitespace char is a '<' character - if (!(isset($options['text']) && $options['text']) - && (!$cfg || $cfg->isHtmlThreadEnabled())) { + if (!(isset($options['text']) && $options['text'])) { // Make sure nothing unsafe has creeped into the message $message = Format::safe_html($message); //XXX?? $mime->setTXTBody(Format::html2text($message, 90, false));