Lines Matching defs:header
143 * Add an arbitrary header to the mail
145 * If an empy value is passed, the header is removed
147 * @param string $header the header name (no trailing colon!)
148 * @param string|string[] $value the value of the header
151 public function setHeader($header, $value, $clean = true)
153 $header = str_replace(' ', '-', ucwords(strtolower(str_replace('-', ' ', $header)))); // streamline casing
155 $header = preg_replace('/[^a-zA-Z0-9_ \-\.\+\@]+/', '', $header);
168 if (isset($this->headers[$header])) unset($this->headers[$header]);
170 $this->headers[$header] = $value;
200 * @param bool $wrap wrap the HTML in the default header/Footer
333 * Add the mail's Subject: header
361 * Sets an email address header with correct encoding
376 * @return false|string the prepared header (can contain multiple lines)
436 // add to header comma seperated
602 * Returns a complete, EOL terminated header line, wraps it if necessary
750 // The To: header is special