This might be a simple question but I've searched and searched and can't find an answer.
I'd like to log the message ID for each email sent so I can more accurately do bounce handling.
I'm using the AWS PHP SDK to send my emails. How can I get the message ID after I send an email?
Found the answer...
I'm able to retrieve the MessageID from the response object I get upon sending an email with SES.
$response->body->SendEmailResult->MessageId
Updated answer: sendEmail returns a Guzzle\Service\Resource\Model.
You can get the value of MessageId with $response->get('MessageId')
More info: http://docs.aws.amazon.com/aws-sdk-php/guide/latest/feature-models.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With