I want to send a mail with Java Mail API ,when it try
to send some exception like it was throws :
javax.activation.UnsupportedDataTypeException: no
object DCH for MIME type text/plain; charset=us-ascii
at
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:841)
at
javax.activation.DataHandler.writeTo(DataHandler.java:295)
at
javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
at
javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321)
at CMail.sendMessages(CMail.java:137)
at CMail.main(CMail.java:323)
javax.mail.MessagingException: IOException while
sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no
object DCH for MIME type text/plain; charset=us-ascii
at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:353)
at CMail.sendMessages(CMail.java:137)
at CMail.main(CMail.java:323)
Also it must work with JavaBeans Activation Framework
(JAF), what's your suggestion about it?!