DEV Community


Access the full details of Delivery Status Notification (Failure) messages from Amazon SES

nisajthani18 profile image Nisa J. Thani ・1 min read

We received a message from Amazon SES notifying us an error had occurred while trying to deliver an email to a recipient:

From: <>
Date: Tue, Dec 15, 2020, 3:33 PM
Subject: Delivery Status Notification (Failure)
To: My Company <>

An error occurred while trying to deliver the mail to the following recipients:
Enter fullscreen mode Exit fullscreen mode

At first glance, it seems that no causes of the errors are specified in the email, but that is not the case. You can access hidden information by downloading the original message. You will get an .eml file, and it will contain info. such as the following:

Action: failed
Final-Recipient: ******; johndoe@****
Diagnostic-Code: blah blah blah Message expired: unable to deliver in 840 minutes.<The email account that you tried to reach is over quota. blah blah blah
Enter fullscreen mode Exit fullscreen mode

In this case, the recipient’s inbox was full it could not receive the email.

Discussion (0)

Editor guide