Email not recieved after attempting to send through SES via Lambda

1

I've been trying to send email through SES, however i was unable to receive the email. When the function is run it does return a response instead of an error:

{
  "ResponseMetadata": {
    "RequestId": "e88074e6-8316-464d-98fa-5407b4fc4652"
  },
  "MessageId": "0100017ed4cc35ac-514b6cf0-2eee-4246-baf6-a75c1dfb3cd8-000000"
}

But the atual email doesn't seem to be sent. I've made sure the email is varified and is outside of the sandbox. The code looks as follows:

  var params = {
    Destination: {
      ToAddresses: ["Sender's Email", 'Another Varified Email', 'Non Verified email']
    },
    Message: {
      Body: {
        Text: {
          Charset: "UTF-8",
          Data: "Test"
        },
      },
      Subject: {
        Charset: "UTF-8",
        Data: "Test email"
      }

    },
    Source: "Sender's Email",
  };

  await SES.sendEmail(params).promise().then(data => { callback(null, data) }).catch(err => callback(err))

I've also checked the cloud watch, it is reflecting as if I've send those emails. Just at the end I've not received any email I've supposedly sent out both through SES test, and the lambda function above.

1 Answer
0

Hello,

It may be the case that the emails are being sent but are being filtered out later by the recipients email provider (perhaps due to something in the message making it appear as spam incorrectly).

What you'll want to do next is open a AWS Support case with us and include the SES request id and other information logged in the Lambda function including timestamps.

From there we can check further into what may be occurring. It may be just a bit of filtering occurring so we can work on double checking! You can open up a case with us by following this link and selecting technical support, and opening a case with our SES Support Team: https://aws.amazon.com/contact-us/

You can check out this AWS troubleshooting document for some common items related to this: https://aws.amazon.com/premiumsupport/knowledge-center/ses-resolve-emails-not-delivered/

AWS
SUPPORT ENGINEER
Tim_P
answered 2 years ago

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.

Guidelines for Answering Questions