Lines Matching defs:html

24     protected $html      = '';
33 protected $replacements = ['text' => [], 'html' => []];
199 * @param string $html the HTML body, leave null to create it from $text
202 public function setBody($text, $textrep = null, $htmlrep = null, $html = null, $wrap = true)
209 if ($html === null) {
210 $html = $text;
211 $html = hsc($html);
212 $html = preg_replace('/^----+$/m', '<hr >', $html);
213 $html = nl2br($html);
216 $wrapper = rawLocale('mailwrap', 'html');
217 $html = preg_replace('/\n-- <br \/>.*$/s', '', $html); //strip signature
218 $html = str_replace('@EMAILSIGNATURE@', '', $html); //strip @EMAILSIGNATURE@
219 $html = str_replace('@HTMLBODY@', $html, $wrapper);
237 $html = preg_replace_callback(
240 $html
245 $hrep = array_merge($this->replacements['html'], $htmlrep);
252 $html = str_replace('@' . strtoupper($key) . '@', $substitution, $html);
255 $this->setHTML($html);
266 * @param string $html
268 public function setHTML($html)
270 $this->html = $html;
470 $this->html = str_replace('%%' . $media['embed'] . '%%', 'cid:' . $cid, $this->html);
502 $this->html = '';
506 if (!$this->text && !$this->html) {
515 if (!$this->html && !count($this->attach)) { // we can send a simple single part message
526 if ($this->text && $this->html) {
537 ' type="text/html"' . MAILHEADER_EOL;
542 $body .= 'Content-Type: text/html; charset=UTF-8' . MAILHEADER_EOL;
545 $body .= chunk_split(base64_encode($this->html), 72, MAILHEADER_EOL);
551 if ($this->text && $this->html) {
684 $this->replacements['html'] = [
701 [$this->replacements['html']['DOKUWIKIURL'], '<br />'],
704 $this->replacements['html']['EMAILSIGNATURE'] = $signature;