/** * Builds the html section of a text/html email. * * Will return a string containing the section. Can be used to send to * an email server directly. * @return string */ protected function getSectionTextHtml() { if ($this->_text_encoding == 'quoted-printable') { return EmailHelper::qpContentTransferEncode($this->_text_html) . "\r\n"; } elseif ($this->_text_encoding == 'base64') { // don't add CRLF if using base64 - spam filters don't // like this return EmailHelper::base64ContentTransferEncode($this->_text_html); } return $this->_text_html . "\r\n"; }