Jakarta Mail

Jakarta Mail (formerly JavaMail) is a Jakarta EE API used to send and receive email via SMTP, POP3 and IMAP. Jakarta Mail is built into the Jakarta EE platform, but also provides an optional package for use in Java SE.

The current version is 2.1.3, released on February 29, 2024. Another open source Jakarta Mail implementation exists (GNU JavaMail), which -while supporting only the obsolete JavaMail 1.3 specification- provides the only free NNTP backend, which makes it possible to use this technology to read and send news group articles.

As of 2019, the software is known as Jakarta Mail, and is part of the Jakarta EE brand (formerly known as Java EE). The reference implementation is part of the Eclipse Angus project.

Maven coordinates of the relevant projects required for operation are:
 * mail API:			   jakarta.mail:jakarta.mail-api:2.1.3
 * mail implementation:	org.eclipse.angus:angus-mail:2.0.3
 * multimedia extensions: jakarta.activation:jakarta.activation-api:2.1.3

Licensing
Jakarta Mail is hosted as an open source project on Eclipse.org under its new name Jakarta Mail.

Most of the Jakarta Mail source code is licensed under the following licences:
 * EPL-2.0
 * GPL-2.0 with Classpath Exception license
 * The source code for the demo programs is licensed under the BSD license

Examples
Sample Code to Send Multipart E-Mail, HTML E-Mail and File Attachments