/** * Adds a html part to the mail. * Also replaces image names with * content-id's. */ function add_html($html, $text = NULL, $images_dir = NULL, $convert = false) { if ($convert) { $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br />', $html); } else { $this->html = $html; } $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); if (isset($images_dir)) { $this->find_html_images($images_dir); } }
/** * Adds a html part to the mail. * Also replaces image names with * content-id's. */ function add_html($html, $text = NULL, $images_dir = NULL) { $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html); $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); if (isset($images_dir)) { $this->find_html_images($images_dir); } }
/** * Adds a html part to the mail. * Also replaces image names with * content-id's. */ function add_html($html, $text = NULL, $images_dir = NULL) { // BOF: [TiM's osC Solutions] ISO-8859-1/UTF-8 dual support if (strtolower(CHARSET) != 'utf-8') { $html = utf8_encode($html); } if (strtolower(CHARSET) != 'utf-8') { $text = utf8_encode($text); } // EOF: [TiM's osC Solutions] ISO-8859-1/UTF-8 dual support $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html); $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); if (isset($images_dir)) { $this->find_html_images($images_dir); } }