Jakarta Mail


Jakarta Mail is a Jakarta EE API used to send and receive email via SMTP, POP3 and IMAP. Jakarta Mail is built into the Java EE platform, but also provides an optional package for use in Java SE.
The current version is 1.6.5, released in March 2020. Another open source Jakarta Mail implementation exists - GNU JavaMail - while supporting only version 1.3 of JavaMail specification, it 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.

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:

import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
// Send a simple, single part, text/plain e-mail
public class TestEmail //End of class

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

import java.util.*;
import java.io.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class SendMailUsage //End of class