title: Add embedded image in emails in AWS SES service
body: <p>I am trying to write a Java app which can send emails to specify emails. In the email i also want to attach some pic.</p>
  
  <p>Please find my code below :-</p>
  
  <pre><code>public class AmazonSESSample {
  
      static final String FROM = "abc@gmail.com";
      static final String TO = "def@gmail.com";
      static final String BODY = "This email was sent through Amazon SES by using the AWS SDK for Java. hello";
      static final String SUBJECT = "Amazon SES test (AWS SDK for Java)";
  
      public static void main(String[] args) throws IOException {
          Destination destination = new Destination().withToAddresses(new String[] { TO });
          Content subject = new Content().withData(SUBJECT);
          Message msg = new Message().withSubject(subject);
          // Include a body in both text and HTML formats
          //Content textContent = new Content().withData("Hello - I hope you're having a good day.");
          Content htmlContent = new Content().withData("&lt;h2&gt;Hi User,&lt;/h2&gt;\n"
                  + " &lt;h3&gt;Please find the ABC Association login details below&lt;/h3&gt;\n"
                  + " &lt;img src=\"logo.png\" alt=\"Mountain View\"&gt;\n"
                  + " Click &lt;a href=\"http://google.com"&gt;here&lt;/a&gt; to go to the association portal.\n"
                  + " &lt;h4&gt;Association ID - 12345&lt;/h4&gt;\n" + "  &lt;h4&gt;Admin UID - suny342&lt;/h4&gt;\n"
                  + " &lt;h4&gt;Password - poass234&lt;/h4&gt;\n" + " Regards,\n" + " &lt;br&gt;Qme Admin&lt;/br&gt;");
          Body body = new Body().withHtml(htmlContent);
          msg.setBody(body);
          SendEmailRequest request = new SendEmailRequest().withSource(FROM).withDestination(destination)
                  .withMessage(msg);
          try {
              System.out.println("Attempting to send an email through Amazon SES by using the AWS SDK for Java...");
              AWSCredentials credentials = null;
              credentials = new BasicAWSCredentials("ABC", "CDF");
              try {
                  // credentialsProvider.
              } catch (Exception e) {
                  throw new AmazonClientException("Cannot load the credentials from the credential profiles file. "
                          + "Please make sure that your credentials file is at the correct "
                          + "location (/Users/iftekharahmedkhan/.aws/credentials), and is in valid format.", e);
              }
              AmazonSimpleEmailService client = AmazonSimpleEmailServiceClientBuilder.standard()
                      .withCredentials(new AWSStaticCredentialsProvider(credentials)).withRegion("us-west-2").build();
              client.sendEmail(request);
              System.out.println("Email sent!");
          } catch (Exception ex) {
              System.out.println("The email was not sent.");
              System.out.println("Error message: " + ex.getMessage());
          }
      }
  }
  </code></pre>
  
  <p>The image is placed in the resource directory but it is not being embeded in the email. Can anyone please help.</p>