Skip to content

Ensure mail delivery

0

Hi, When using SES, how to be sure that the mail was delivered ? If the return code of the api request using boto3 is equal to 200 then for 100% the mail was delivered ?

2 Answers
0
Accepted Answer

No, send_email in boto3 returns 200 if the message was successfully sent to the SES.
That is, if the message is successfully queued, it is returned at 200.
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ses/client/send_email.html#

Composes an email message and immediately queues it for sending. In order to send email using the SendEmail operation, your message must meet the following requirements:

You can confirm a successful submission by checking the submission history or CloudWatch metrics in the following ways.
https://repost.aws/knowledge-center/ses-email-sending-history

EXPERT
answered 3 years ago
0

From a coding point of view, how to validate that the message was successfully delivered and not only queued ?

answered 3 years ago
  • You can confirm a successful submission by checking the submission history or CloudWatch metrics in the following ways. https://repost.aws/knowledge-center/ses-email-sending-history The above method sends the submission history to OpenSearch Service, but if you use Kinesis to send it to S3, you can check the history in json. So after that, you can check the sending history in S3 with the code to see if it was sent successfully or if it bounced.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.