Sending RTF in the body of an email

Sending RTF in the body of an email

Does anyone know how I can send rtf files as the body of email messages? I have the rtf stored in a string and I was trying

msg.setContent(str, "text/rtf") or msg.setContent(str, "text/richtext") but I get javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/rtf . I can attached the rtf files and send them that way but I really need to be able to send them in the body.

Thanks

[466 byte] By [riyasiyaa] at [2007-10-3 4:50:24]
# 1
Answered here: http://forum.java.sun.com/thread.jspa?forumID=43&threadID=767814
bshannona at 2007-7-14 22:54:59 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...