JavaMail is a Java API used to send and receive email via SMTP, POP3 and IMAP. JavaMail is built into the Java EE platform, but also provides an optional package for use in Java SE.
Contents
The current version is 1.5.6, released in August 2016. Another open source JavaMail 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.
Licensing
As of April 3, 2013, JavaMail is now hosted as an open source project on Java.net.
Most of the JavaMail source code is licensed under the following licences:
Examples
Sample Code to Send Multipart E-Mail, HTML E-Mail and File Attachments
References
JavaMail Wikipedia(Text) CC BY-SA