title: How to send mail through php mail on Amazon SES service?
body: <p>I want to send mail through php mail on Amazon SES service, In using PHP Mail But I am not able to send send. I already verify the my email_id. I am using this tutorial as reference <a href="http://www.codeproject.com/Articles/786596/How-to-Use-Amazon-SES-to-Send-Email-from-PHP" rel="nofollow">http://www.codeproject.com/Articles/786596/How-to-Use-Amazon-SES-to-Send-Email-from-PHP</a>. <strong>But It is not sending mail from Amazon SES services, please tell me where I am wrong ?</strong>
  Previously I was using the same id to send mails from localserver XAMPP. It was working.</p>
  
  <p><strong>sendMail.php</strong> </p>
  
  <pre><code>   &lt;?php &gt;
  function Send_Mail($to,$subject,$body)
  {
      require 'class.phpmailer.php';
      $from = "Senders_Email_Address";
      $mail = new PHPMailer();
      $mail-&gt;IsSMTP(true); // SMTP
      $mail-&gt;SMTPAuth   = true;  // SMTP authentication
      $mail-&gt;Mailer = "smtp";
      $mail-&gt;Host= "tls://email-smtp.us-east.amazonaws.com"; // Amazon SES
      $mail-&gt;Port = 465;  // SMTP Port
      $mail-&gt;Username = "Senders_Email_Address";  // SMTP  Username
      $mail-&gt;Password = "MyPassword";  // SMTP Password
      $mail-&gt;SetFrom($from, 'From Name');
      $mail-&gt;AddReplyTo($from,'Senders_Email_Address');
      $mail-&gt;Subject = $subject;
      $mail-&gt;MsgHTML($body);
      $address = $to;
      $mail-&gt;AddAddress($address, $to);
      if(!$mail-&gt;Send())
          return false;
      else
          return true;
  }
  ?&gt;
  </code></pre>
  
  <p><strong>index.php</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;    
  &lt;h1&gt;Welcome to my home page!&lt;/h1&gt;
  &lt;p&gt;Some text.&lt;/p&gt;
  &lt;p&gt;Some more text.&lt;/p&gt;
  &lt;?php
  require 'sendMail.php';
  $to = "Senders_Email_Address";
  $subject = "Test Mail Subject";
  $body = "Hi&lt;br/&gt;Test Mail&lt;br/&gt;Amazon SES"; // HTML  tags
  Send_Mail($to,$subject,$body);
  ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>sendMail.php, class.phpmailer.php, class.smtp.php and index.php are in the same directory</strong>. </p>