title: Getting email client does not support HTML messages for Email through Java
body: <p>I am sending email using <strong>apache-commons-logging.jar</strong>. I am able to send html email successfully, but few people are getting <strong>Your email client does not support HTML messages</strong> message in their mail. The following is the code sample - </p>
  
  <pre><code>HtmlEmail htmlEmail = new HtmlEmail();
  htmlEmail.setHostName("localhost");
  htmlEmail.addTo(email, "demo1@sample.com");
  htmlEmail.setFrom("demo2@sample.com", "Demo2");
  htmlEmail.setSubject("Subject Line");
  
  String msg = "&lt;html&gt;Hi Demo1,";
  msg       += "&lt;br&gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A very warm Welcome";
  msg       += "&lt;/html&gt;";
  htmlEmail.setHtmlMsg(msg);
  
  // set the alternative message
  htmlEmail.setTextMsg("Your email client does not support HTML messages");
  
  // send the email
  htmlEmail.send();
  </code></pre>
  
  <p>I am not understanding how to resolve this problem.</p>
  
  <p>Please Gurus help me.</p>
  
  <p>Thanks in advance.</p>