Skip to content
Advertisement

javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary

Currently I’m inline of writing a code that will be listening to a directory. when the directory is updated with .apk file, I’ll send a mail with this .apk file to a gmail account. I’m using Jnotify and JAVA Mail in my program.

The Error I’m getting is,

JavaScript

I looked for the solutions given in the stackoverflow for help but none of them where helpful.

Thanks in Advance

JavaScript

Advertisement

Answer

This issue can get a solution by taking up the below two steps.

  1. Make sure java mail is 1.4.7.(Previously I used 1.4.5 which led to all confusions). Download it from http://www.oracle.com/technetwork/java/index-138643.html
  2. Add this piece of code before sending the message:
JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement