Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best mail library for Java web applications

Tags:

java

email

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?

like image 484
cedric Avatar asked Oct 15 '09 18:10

cedric


People also ask

Which package is required for mailing services in Java?

There are two packages that are used in Java Mail API: javax. mail and javax. mail. internet package.

Can we send email using Java?

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.

What is SMTP in Java?

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.

What is MimeMessage in Java?

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.


1 Answers

"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:

  1. Simple Java Mail - built on top of JavaMail, simplifies API to produce a correct emails
  2. Commons Email - built on top of JavaMail, simplifies certain commonly used scenarios.
  3. Spring Email integration (only if you're using Spring already)

javaee.github curates a comprehensive list with many more:

  • https://javaee.github.io/javamail/ThirdPartyProducts

Oracle has a curated list as well, although the lists are suspiciously similar:

  • http://www.oracle.com/technetwork/java/javamail/third-party-136965.html
like image 168
ChssPly76 Avatar answered Sep 27 '22 21:09

ChssPly76