title: Mail go to spam using smtp mail method in php
body: <p>I want to send mail to inbox using smtp mail method using PHP.Now mail go to spam instead of inbox,i am using smtp mail method.I had set the hostname,username and password.</p>
  
  <pre><code>  &lt;?php
  
    define("SMTP_HOST", "mail.test.us"); //Hostname of the mail server
    define("SMTP_PORT", "25"); //Port of the SMTP like to be 25, 80, 465 or 587
    define("SMTP_UNAME", "tttt"); 
    //Username for SMTP authentication any valid   email created in your domain
    define("SMTP_PWORD", "tttt"); //Password for SMTP authentication
    ?&gt;
  </code></pre>
  
  <p>Mail code</p>
  
  <pre><code>//smtp mail
  $mail   = new PHPMailer;
  $mail-&gt;Host = SMTP_HOST; 
  $mail-&gt;Port = SMTP_PORT; 
  $mail-&gt;SMTPAuth = true; 
  $mail-&gt;Username = SMTP_UNAME; 
  $mail-&gt;Password = SMTP_PWORD; 
  $mail-&gt;AddReplyTo("test@test.com", "zamisoft"); 
  $mail-&gt;SetFrom("test@test.com", "zamisoft.com"); 
  $mail-&gt;Subject = $subject; 
  $mail-&gt;AddAddress($to, '');
  $mail-&gt;MsgHTML($message);
  $send = $mail-&gt;Send(); 
  $mail-&gt;ClearAddresses();
  
  //smtp mail
  </code></pre>
  
  <p>Anybody give any solution for these issue?</p>