I am investigating on the best free mail library to use for Java web applications. It is something with more support and easy to use. If it's complex but would be justified by its great features it might do.
Have any suggestions?
There are two packages that are used in Java Mail API: javax. mail and javax. mail. internet package.
To send an e-mail using your Java Application is simple enough but to start with you should have JavaMail API and Java Activation Framework (JAF) installed on your machine. You can download latest version of JavaMail (Version 1.2) from Java's standard website. You can download latest version of JAF (Version 1.1.
SMTP is an acronym for Simple Mail Transfer Protocol. It is an Internet standard for electronic mail (e-mail) transmission across Internet Protocol (IP) networks.
MimeMessage uses the InternetHeaders class to parse and store the top level RFC 822 headers of a message. The mail. mime. address. strict session property controls the parsing of address headers.
"Best" is subjective, especially since you didn't specify any particular features you may be looking for.
With that said, here's a couple to get you started:
javaee.github curates a comprehensive list with many more:
Oracle has a curated list as well, although the lists are suspiciously similar:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With