Lines Matching refs:text

27     protected $text      = '';
35 protected $replacements = array('text'=> array(), 'html' => array());
181 * Set the text and HTML body and apply replacements
189 * @param string $text plain text body
190 * @param array $textrep replacements to apply on the text part
192 * @param string $html the HTML body, leave null to create it from $text
195 public function setBody($text, $textrep = null, $htmlrep = null, $html = null, $wrap = true) {
200 // create HTML from text if not given
202 $html = $text;
214 if(strpos($text, '@EMAILSIGNATURE@') === false) {
215 $text .= '@EMAILSIGNATURE@';
235 $trep = array_merge($this->replacements['text'], (array)$textrep);
240 $text = str_replace('@'.strtoupper($key).'@', $substitution, $text);
247 $this->setText($text);
264 * Set the plain text part of the mail
268 * @param string $text
270 public function setText($text) {
271 $this->text = $text;
379 $text = trim($matches[1]);
382 $text = '';
401 // text was given
402 if(!empty($text) && !isWindows()) { // No named recipients for To: in Windows (see FS#652)
407 $text = \dokuwiki\Utf8\Clean::deaccent($text);
408 $text = \dokuwiki\Utf8\Clean::strip($text);
411 if(strpos($text, ',') !== false || !\dokuwiki\Utf8\Clean::isASCII($text)) {
412 $text = '=?UTF-8?B?'.base64_encode($text).'?=';
415 $text = '';
422 $headers .= $text.' '.$addr;
486 if(!$this->text && !$this->html) {
496 $this->headers['Content-Type'] = 'text/plain; charset=UTF-8';
498 $body .= chunk_split(base64_encode($this->text), 72, MAILHEADER_EOL);
505 // do we have alternative text content?
506 if($this->text && $this->html) {
510 $body .= 'Content-Type: text/plain; charset=UTF-8'.MAILHEADER_EOL;
513 $body .= chunk_split(base64_encode($this->text), 72, MAILHEADER_EOL);
517 ' type="text/html"'.MAILHEADER_EOL;
522 $body .= 'Content-Type: text/html; charset=UTF-8'.MAILHEADER_EOL;
531 if($this->text && $this->html) {
642 $this->replacements['text'] = array(
655 $this->replacements['text']['DOKUWIKIURL'],
658 $this->replacements['text']['EMAILSIGNATURE'] = "\n-- \n" . $signature . "\n";
712 'body' => &$this->text,