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
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.