headerLine() 공개 메소드

Format a header line.
public headerLine ( string $name, string $value ) : string
$name string
$value string
리턴 string
예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * 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);
 }