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

前端 未结 11 2450
暖寄归人
暖寄归人 2020-12-03 17:01

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

11条回答
  •  时光说笑
    2020-12-03 17:36

    I am busy converting a Java 8 project to Java 10. At the same time I have been updating all of the dependencies. I was getting a similar exception and none of the above solutions worked for me.

    I have the following in my pom.xml:

    
        com.sun.mail
        javax.mail
        1.6.1
    
    

    I did a bit more research and found the following link:

    http://www.jguru.com/faq/view.jsp?EID=237257

    So I tried adding the following dependency to my pom.xml:

    
        javax.activation
        activation
        1.1.1
     
    

    That fixed the problem, I was able to send mail with attachments again.

提交回复
热议问题