public function set_header($header, $value) { $header = (string) $header; $value = (string) $value; if ($this->mailer_engine == 'phpmailer') { $this->phpmailer->addCustomHeader($header, str_replace(array("\n", "\r"), '', $value)); } parent::set_header($header, $value); return $this; }