Lines Matching refs:headers

24     protected $headers   = [];  variable in Mailer
226 if (isset($this->headers[$header])) unset($this->headers[$header]);
228 $this->headers[$header] = $value;
397 $this->headers['Subject'] = $subject;
438 $headers = '';
495 if ($headers != '') {
496 $headers .= ', ';
498 $headers .= $text . ' ' . $addr;
501 $headers = trim($headers);
502 if (empty($headers)) return false;
504 return $headers;
569 $this->headers['MIME-Version'] = '1.0';
574 $this->headers['Content-Type'] = 'text/plain; charset=UTF-8';
575 $this->headers['Content-Transfer-Encoding'] = 'base64';
585 $this->headers['Content-Type'] = 'multipart/alternative;' . MAILHEADER_EOL .
625 if (empty($this->headers['From'])) $this->from($conf['mailfrom']);
628 if (isset($this->headers[$addr])) {
629 $this->headers[$addr] = $this->cleanAddress($this->headers[$addr]);
633 if (isset($this->headers['Subject'])) {
644 if (!str_starts_with($this->headers['Subject'], $prefix)) {
645 $this->headers['Subject'] = $prefix . ' ' . $this->headers['Subject'];
650 $this->headers['Subject'] = Clean::deaccent($this->headers['Subject']);
651 $this->headers['Subject'] = Clean::strip($this->headers['Subject']);
653 if (!Clean::isASCII($this->headers['Subject'])) {
654 … $this->headers['Subject'] = '=?UTF-8?B?' . base64_encode($this->headers['Subject']) . '?=';
678 $headers = '';
679 foreach ($this->headers as $key => $val) {
681 $headers .= $this->wrappedHeaderLine($key, $val);
683 return $headers;
699 $headers = $this->prepareHeaders();
701 return $headers . MAILHEADER_EOL . $body;
783 'to' => &$this->headers['To'],
784 'cc' => &$this->headers['Cc'],
785 'bcc' => &$this->headers['Bcc'],
786 'from' => &$this->headers['From'],
787 'subject' => &$this->headers['Subject'],
803 trim($this->headers['To']) === '' &&
804 trim($this->headers['Cc']) === '' &&
805 trim($this->headers['Bcc']) === ''
809 if (array_key_exists('To', $this->headers)) {
810 $to = (string)$this->headers['To'];
811 unset($this->headers['To']);
817 if (array_key_exists('Subject', $this->headers)) {
818 $subject = (string)$this->headers['Subject'];
819 unset($this->headers['Subject']);
829 $headers = $this->prepareHeaders();
832 $headers .= MAILHEADER_EOL . trim($data['headers']);
846 $success = @mail($to, $subject, $body, $headers);
848 $success = @mail($to, $subject, $body, $headers, $this->sendparam);