If you want to use the core JavaMail API to send email, you have to get the JavaMail library – ‘mail.jar‘ and ‘activation.jar‘. Unfortunately, those libraries are not available in the Maven central repository, you have to download it from java.Net maven repository.


<project xmlns="http://maven.apache.org/POM/4.0.0" 
    <!-- Java Mail API -->
Tags :
Founder of Mkyong.com and HostingCompass.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.

Related Posts

Popular Posts