/** * Inherited phpMailer function adding a header to email message. * We override it to skip X-Mailer header. * * @param string $sName header name * @param string $sValue header value * * @return null */ public function headerLine($sName, $sValue) { if (stripos($sName, 'X-') !== false) { return; } return parent::headerLine($sName, $sValue); }
/** * Inherited phpMailer function adding a header to email message. * We override it to skip X-Mailer header. * * @param string $name header name * @param string $value header value * * @return string|null */ public function headerLine($name, $value) { if (stripos($name, 'X-') !== false) { return null; } return parent::headerLine($name, $value); }