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.
Sending and receiving email over the Internet or intranet are governed by several protocols. The Simple Mail Transfer Protocol ...