title: PHPmailer can't connect to smtp server
body: <p>I've been using PHPmailer (<a href="https://github.com/Synchro/PHPMailer" rel="nofollow">https://github.com/Synchro/PHPMailer</a>) to send email through amazon SES for a few months.  At some time in the last two weeks it has stopped working, and I haven't touched it. I'm getting an error msg:</p>
  
  <p><code>SMTP Error: Could not connect to SMTP host. </code></p>
  
  <p>This is my code.
  <code></p>
  
  <pre><code>public function sendEmail($to,$subject,$body){
  
      $mail = new PHPMailer;
      $mail-&gt;IsSMTP();     // Set mailer to use SMTP
      $mail-&gt;Host = 'amazonaws....';  // Specify main and backup server
      $mail-&gt;SMTPAuth = true;  // Enable SMTP authentication    
      $mail-&gt;Username = 'mySMTPuname';   // SMTP username
      $mail-&gt;Password = 'smtpPword';   // SMTP password
      $mail-&gt;SMTPSecure = 'tls';  // Enable encryption, 'ssl' also accepted
      $mail-&gt;From = 'example';
      $mail-&gt;FromName = 'me';
      $mail-&gt;AddAddress($to); // Name is optional
      $mail-&gt;IsHTML(true); // Set email format to HTML
  
      $mail-&gt;Subject = $subject;
      $mail-&gt;Body    = $body;
  
      return $mail-&gt;Send();       
  }
  </code></pre>
  
  <p></code></p>
  
  <p>My amazon account is still upto date and active.  Is there any way to print out more detailed error msgs for debugging?  Has there been any known issues lately?</p>