Send to Email.java
package helper;
//Mail.java - smtp sending starttls (ssl) authentication enabled
//1.Open a new Java class in netbeans (
When I had this problem, I had included the mail-api.jar in my maven pom file. That's the API specification only. The fix is to replace this:
javax.mail
javax.mail-api
with the reference implementation of that api:
com.sun.mail
javax.mail
I know it has sun in the package name, but that's the latest version. I learned this from https://stackoverflow.com/a/28935760/1128668