title: PHP mails always ends up in the spam folder
body: <p>i have an issue here, my mails sent from my PHP script never gets delivered to my inbox, but spam instead. Any help on how to get it to the inbox. Thank y'all
  Here is my code sample</p>
  
  <pre><code>public function sendMail($name,$email,$message)
  {
      $this-&gt;validateInput($name,"Empty Name","Invalid Name");
      $this-&gt;validateEmail($email,"Empty Email","Invalid Email");
      $this-&gt;validateLargeData($message,"Invalid Message","Empty Message","Message Too Short");
      if (empty($this-&gt;errors))
      {
          $fromName = $name;
          $fromEmail = $email;
          $from   = "From: $fromName &lt;$fromEmail&gt;\r\n";
          $reply = "Reply-To: $fromEmail\r\n";    
          $mime = "MIME-Version: 1.0\r\n";
          $content = "Content-Type: text/html; charset=ISO-8859-1\r\n";
          $headers = $from.$reply.$mime.$content;
          if (mail("support@findit.com.ng","Contact",$message,$headers))
          {
              echo "&lt;div class='success1'&gt;Thank you $name, we will get back you immediately.&lt;/div&gt;";
          }
  
      }
      else
      {
          echo "&lt;div class=''&gt;";
          echo "&lt;/div&gt;";
      }
  }
  </code></pre>
  
  <p><strong>edit</strong>
  Pls here is the header information i am using</p>
  
  <pre><code>$fromName = $name;
  $fromEmail = $email;
  $from   = "From: $fromName &lt;$fromEmail&gt;\r\n";
  $reply = "Reply-To: $fromEmail\r\n";    
  $mime = "MIME-Version: 1.0\r\n";
  $content = "Content-Type: text/html; charset=ISO-8859-1\r\n";
  $mailer = "X-Mailer: PHP's mail() Function";
  $headers = $from.$reply.$mime.$content.$mailer;
  </code></pre>
  
  <p>@cyberomin</p>