I'm using CakePHP 2.6 and using CakeEmail to send a verification email to users.
$Email = new CakeEmail('smtp');
$Email->to($this->request->data['Account']['account_email']);
$Email->subject('Verify your account before you continue');
$Email->send('http://localhost/Accounts/verify/'.$this->request->data['Account']['account_verificationhash']);
As Amazon SES rewrites the message-id, I cannot attribute complaints and bounces to a specific email message. According to their docs, Amazon SES returns the message ID in the final SMTP response. I.e.(250 Ok <Message ID>)
How can I retrieve that response code?
$result = $Email->send();
? – AgRizzo