title: AWS SES: How to get the response for an email request?
body: <p>I am using AWS SDK for java to send emails. Following is my code -</p>
  <pre><code>public void sendMessage(MimeMessage mimeMessage) throws MessagingException, IOException {
          // Sending the email.
          ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
          mimeMessage.writeTo(outputStream);
          RawMessage rawMessage =
                  new RawMessage(ByteBuffer.wrap(outputStream.toByteArray()));
          SendRawEmailRequest rawEmailRequest =
                  new SendRawEmailRequest(rawMessage);
          SendRawEmailResult result = client.sendRawEmail(rawEmailRequest);
          log.info(&quot;Email sent!&quot;);
          log.debug(&quot;Email sent with message id: {}&quot;,result.getMessageId());
      }
  </code></pre>
  <p>Now I want to be able to check if my email was sent or not. I found some documentation stating that SES always returns a response along with the message id, if so how can I extract the response from the message id? If not, then what other ways are possible to get the response?</p>