title: How to read a bounce back email details with Java mail API?
body: <p>I am using Java mail API to read the bounce back email from Amazon SES on my Gmail id.</p>
  
  <p>This is how I receive an bounce email from Amazon SES.</p>
  
  <pre><code>&lt;email content start&gt;
  
  An error occurred while trying to deliver the mail to the following recipients:
  bounce@simulator.amazonses.com
  Action: failed
  Final-Recipient: rfc822; bounce@simulator.amazonses.com
  Diagnostic-Code: smtp; 550 5.1.1 user unknown
  Status: 5.1.1
  
  
  
  ---------- Forwarded message ----------
  From: fullstack.rahultokase@gmail.com
  To: bounce@simulator.amazonses.com
  Cc: 
  Bcc: 
  Date: Sun, 17 Dec 2017 15:27:30 +0000
  Subject: bounce@simulator.amazonses.com
  bounce@simulator.amazonses.com
  
  &lt;email content end&gt;
  </code></pre>
  
  <p>My question is using Java email API. I am able to read the content up to:</p>
  
  <pre><code>An error occurred while trying to deliver the mail to the following recipients:
  bounce@simulator.amazonses.com
  </code></pre>
  
  <p>But I am not able to read the following content with the help of Java email api</p>
  
  <pre><code>Action: failed
  Final-Recipient: rfc822; bounce@simulator.amazonses.com
  Diagnostic-Code: smtp; 550 5.1.1 user unknown
  Status: 5.1.1
  </code></pre>
  
  <p>How can I read the above content in the email?</p>