title: How to send dynamic html table in email body using java
body: <p>I have a class callProcedure which has method getProductwiseCount.</p>
  
  <p>Through callprocedure class I am calling sendMail method of another class.I want to generate dynamic table from key and value pairs from hashmap in html and attached it in mail. How do I do it?</p>
  
  <pre><code>public HashMap&lt;Long, String&gt; getProductwiseCount() {
          return ProductwiseCount;
      }
  </code></pre>