Skip to content
Advertisement

How to read a bounce back email details with Java mail API?

I am using Java mail API to read the bounce back email from Amazon SES on my Gmail id.

This is how I receive an bounce email from Amazon SES.

JavaScript

My question is using Java email API. I am able to read the content up to:

JavaScript

But I am not able to read the following content with the help of Java email api

JavaScript

How can I read the above content in the email?

Advertisement

Answer

The diagnostic code information is a part of message content and can be read using the following code.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement