title: Issue in displaying image in Gmail body
body: <p>I am trying to attach the HTML file to the Gmail body, but the image which I have attached in the HTML file is not getting displayed in Gmail (working fine in Outlook).I have tried putting the base64 code of image but still the same issue (In this case even in Outlook the image is blocked). I even tried with "Content ID generator".</p>
  
  <p>Please see following code what I have tried), but unable to display image.
  Can some one tell me how to solve this issue?</p>
  
  <p>(Note: I have used the free marker template to generate the HTML code)</p>
  
  <pre><code>          Map&lt;String, String&gt; inlineImages = new HashMap&lt;String, String&gt;();
  
             inlineImages.put("image2", "C:\\Users\\xxxxxxx\\Desktop\\Capture1.jpg");
             model.put("image", inlineImages);
  
              String text = geFreeMarkerTemplateContent(model);
              System.out.println("Template content : "+text);
  
  
              helper.setText(text, true);
  
           MimeBodyPart bodyPart = new MimeBodyPart();
              bodyPart.setContent(text, "text/html");
  
          Multipart multipart = new MimeMultipart();
              multipart.addBodyPart(bodyPart);
  
          MimeBodyPart imagePart = new MimeBodyPart();
              imagePart.setHeader("Content-ID", "image2");
              imagePart.setDisposition(MimeBodyPart.INLINE);
              // attach the image file
              imagePart.attachFile("C:\\Users\\xxxxx\\Desktop\\Capture1.jpg");
  
               multipart.addBodyPart(imagePart);
               mimeMessage.setContent(multipart);
  </code></pre>