hello anand
I found the solution of Datahandler that is surely help to u.I send u some snippet .
try this
MimeMessage msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(subject);
msg.setSentDate(new Date());
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setContent(msgText1+msgText2, "text/html");
// Create a related multi-part to combine the parts
MimeMultipart multipart = new MimeMultipart();
// Add body part to multipart
multipart.addBodyPart(messageBodyPart);
// Associate multi-part with message
msg.setContent(multipart);
// Send message
Transport.send(msg);
I hope this helps u if not send me mail my id is
[email protected] and inform me this helps u or not