title: CakePHP & AWS SES just stopped working
body: <p>I've been using AWS SES with a CakePHP app for a few months, everything was working fine but we had a server problem meaning I had take the site off and get the server restored. Once I put the site back on I noticed emails wouldn't send and causing CakePHP to error.</p>
  
  <p><strong>The Error</strong></p>
  
  <pre><code>2013-01-14 14:50:02 Error: [SocketException] SMTP Error: 535 Incorrect authentication data
  #0 /public_html/lib/Cake/Network/Email/SmtpTransport.php(132): SmtpTransport-&gt;_smtpSend('QWhRZ2F0azQyTnh...', '235')
  #1 /public_html/lib/Cake/Network/Email/SmtpTransport.php(61): SmtpTransport-&gt;_auth()
  #2 /public_html/lib/Cake/Network/Email/CakeEmail.php(1059): SmtpTransport-&gt;send(Object(CakeEmail))
  #3 /public_html/app/Controller/UsersController.php(1945): CakeEmail-&gt;send()
  </code></pre>
  
  <p><strong>What I've done so far</strong></p>
  
  <ol>
  <li><p>I've checked both the domain and email are verified. </p></li>
  <li><p>I regenerated new SMTP details just incase they where wrong.</p></li>
  <li><p>Made sure my server time was correct using NTP</p></li>
  <li><p>In the meantime I set up SMTP with a google business apps.</p></li>
  </ol>
  
  <p><strong>My Configuration (Some details altered for security)</strong> </p>
  
  <pre><code>public $smtp = array(
  'transport' =&gt; 'Smtp',
  'from' =&gt; array('no.reply@company.com' =&gt; 'Company'),
  'host' =&gt; 'ssl://email-smtp.us-east-1.amazonaws.com',
  'port' =&gt; 465,
  'timeout' =&gt; 10,
  'username' =&gt; 'AKIAICH5321NNDR2CMA',
  'password' =&gt; 'AhQgat12Nx21c5e78S9Ufku0+4fw9LnRpuMTGZwjXT',
  'client' =&gt; null,
  'log' =&gt; false,
  );
  </code></pre>
  
  <p><strong>My Configuration for Google Business Apps (which works)</strong></p>
  
  <pre><code>public $smtp = array(
      'transport' =&gt; 'Smtp',
      'from' =&gt; array('no.reply@company.com' =&gt; 'Company'),
      'host' =&gt; 'ssl://smtp.gmail.com',
      'port' =&gt; 465,
      'timeout' =&gt; 10,
      'username' =&gt; 'all@company.com',
      'password' =&gt; 'b1t306b',
      'client' =&gt; null,
      'log' =&gt; false
  );
  </code></pre>
  
  <p>Could I be missing some module of my server or has AWS changed something that happened round the same time as my server change? I'd really appreciate any help or advice. Thanks Jason</p>