title: Amazon SES STARTTLS SMTP & ExpressionEngine
body: <p>I am trying to send mail using Amazon SES SMTP with STARTTLS in ExpressionEngine . I am encountering the  error below.</p>
  
  <p>I'm unsure why it is complaining it can't send the AUTH LOGIN command before the STARTTLS command - STARTTLS has clearly already been sent. I have tried everything I can think of, and would appreciate it if someone could point me in the right direction.</p>
  
  <hr>
  
  <p>220 email-smtp.amazonaws.com ESMTP SimpleEmailService-376766033 </p>
  
  <p>hello: 250-email-smtp.amazonaws.com</p>
  
  <p>250-8BITMIME</p>
  
  <p>250-SIZE 10485760</p>
  
  <p>250-STARTTLS</p>
  
  <p>250-AUTH PLAIN LOGIN</p>
  
  <p>250 Ok</p>
  
  <p>Failed to send AUTH LOGIN command. Error: 530 Must issue a STARTTLS command first </p>
  
  <p>from: 530 Authentication required</p>
  
  <p>The following SMTP error was encountered: 530 Authentication required </p>
  
  <p>to: 503 Error: need MAIL command</p>
  
  <p>The following SMTP error was encountered: 503 Error: need MAIL command </p>
  
  <p>data: 503 Error: need MAIL command</p>
  
  <p>The following SMTP error was encountered: 503 Error: need MAIL command </p>
  
  <p>500 Error: command not implemented </p>
  
  <p>The following SMTP error was encountered: 500 Error: command not implemented </p>
  
  <p>Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.</p>