title: Setting a custom header using PHP
body: <p>I am using phpmailer for sending emails, but I want to make a custom header for my campaign, by adding a textarea field that contain any custom header here is my code but I don't know where is the problem it not working I don't see my custom header in mail full header:</p>
  
  <pre><code>foreach (preg_split('/[\r\n]+/', $_POST['customHeader']) as $line) {
      list($name, $value) = explode(': ', $line, 2);
      $PHPMailer-&gt;addCustomHeader($name,$value);
  }
  </code></pre>
  
  <p>Even I use different headers, I don't see  my custom header in recieved mail, please help thanks in advance.</p>