Suvarna Garge (Editor)

JavaMail

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

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:

  • CDDL-1.1
  • 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

    References

    JavaMail Wikipedia