rajeshkannan sella wrote:
This code makes message body html formatted as per API reference
I would try following the example from
http://commons.apache.org/email/apidocs/org/apache/commons/mail/HtmlEmail.html; which constructs an actual HTML message, tags and all before submitting to HtmlEmail.
It seems somewhat optimistic to assume to assume that HtmlEmail can actually mark up what you have submitted as HTML (sure it might be add a couple of tags around of your text; but I would be pretty surprised if there was a full on text parser in it that understood when to make <a> tags and the like).
Try downloading the source to commons email and look at the source to HtmlEmail.
L