title: PHPmailer sends to junk email
body: <p>I've just updated a contact form to use PHPMailer to stop emails being marked as junk, with no luck. </p>
  
  <p>It's a fairly straight forward setup I'm using but its still going into peoples junk mail.</p>
  
  <p>Here is my script, I was wondering if anyone could tell what was wrong?</p>
  
  <pre><code>include_once('../inc/phpmailer/class.phpmailer.php');
  
  $mail = new PHPMailer();
  
  $name = $_POST['name'];
  $email = $_POST['email'];
  $body = "Name: ".$name."\r\n";
  $body .= "Email: ".$email."\r\n";
  $body .= "Message: ".$_POST['message'];
  
  $mail-&gt;From       = "mailer@blah.com";
  $mail-&gt;FromName   = "Contact BLah";
  
  $mail-&gt;Subject    = "Contact From: Blah";
  
  $mail-&gt;Body = $body;
  
  $mail-&gt;AddAddress("john@blah.com", "john");
  $mail-&gt;AddAddress("david@blah.com", "david");
  
  if(!$mail-&gt;Send()) {
    $errorMsg .= "Error sending message, please try again later.";
  } else {
    $errorMsg .= "Message Sent successfully.";
  }
  </code></pre>
  
  <p>I thought that PHPmailer normally takes care of inserting proper headers?</p>
  
  <p>Any thoughts?</p>
  
  <p>EDIT: Added spam score</p>
  
  <p>-Spam-Status: "score=0.0 tests=none version=3.1.7 cmae=v=1.0 c=1 a=8nJEP1OIZ-IA:10
      a=soyWjZv28gkhNSke5wm04A==:17 a=fqdOs_Nl9wd82e3SDigA:9 a=l-lynuxnH-gfU2bevBoA:7
      a=wPNLvfGTeEIA:10 a=nymK5Bb5l1cA:10 a=_6wjLm_vFSYA:10 xcat=Undefined/Undefined"
  X-Spam-Level: *</p>
  
  <p>EDIT 2: I just tried the script on a different server from the clients and it has the same result. Do I have to send through the SMTP setup for it not to be classed as spam?</p>