title: PHPMailer mailed-by header
body: <p>Im using PHPMailer for sending emails. But for some reason its always go to spams box..</p>
  
  <p>Google say the email is missing <strong>mailed-by header</strong>.</p>
  
  <p>The question is how do i add the additional header using PHPMailer?</p>
  
  <pre><code>current code:
  function sendMail($mail, $arr) {
      $mail-&gt;AddAddress($arr['toEmail'], $arr['toName']);
      $mail-&gt;SetFrom($arr['fromEmail'], $arr['fromName']);
      $mail-&gt;AddReplyTo($replyEmail, $replyName);
      $mail-&gt;Subject = trim($arr['subject']);
      $mail-&gt;addCustomHeader('mailed-by: mydomain.com'); &lt;-- didnt work.
      $mail-&gt;MsgHTML( trim($arr['content']) );
      $mail-&gt;IsHTML(true); 
      $mail-&gt;Send();
  }
  </code></pre>