O'Reilly logo

Servlet & JSP: A Tutorial, Second Edition by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16

JavaMail

JavaMail is a Java technology for sending and receiving emails. It is included in the Java EE platform but not in the Java SE platform. JavaMail depends on JavaBeans Activation Framework (JAF), a Java technology for determining the type of arbitrary data and encapsulating access to the data. Fortunately, JAF is bundled with JDK 1.6. If you are using Java SE 6 or later, the only API you need to download to work with JavaMail is the JavaMail API itself.

This chapter explains JavaMail and shows how to send and receive emails, work with folders and send and retrieve attachments.

JavaMail Overview

Sending and receiving email over the Internet or intranet are governed by several protocols. The Simple Mail Transfer Protocol ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required