05
Sep

Maven dependency for Javamail


javax.mail
mail
1.4


javax.activation
activation
1.1.1

Once you have pom updated for above dependencies, you can use following code to send email from your java program