HTML received a s text

If I send a message in HTML message.setDataHandler(new DataHandler(htmlTemplate,"text/html"));

it is still being received in text through some web interface mail browsers (e.g lineone). Also when hotmail receives it two copies are displayed.

What can I do to only allow one copy to be displayed and always ensure it is received as html?

I'm quite stuck, and this things needs to be able to send out html to bulk mailing lists so it needs to be sorted quite fast.

Any help appreciated

[589 byte] By [richardsimmonds] at [2007-9-26 2:19:02]
# 1
I think this code will works fine:Message message = new Message(session);BodyPart bp = new BodyPart();bp.setContent(htmlContent,"text/html");message.setContent(bp);Transport.send(message);Hope it help!
metalcure at 2007-6-29 9:20:50 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
You have to be sure htmlTemplate is an html document so its set to text/htmljavax.activation.DataHandler dh = new javax.activation.DataHandler(fds);I think txt docs are set to text/plain automatically./Martijn
Mmartijnp at 2007-6-29 9:20:50 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...