O'Reilly logo

Sams Teach Yourself EJB in 21 Days by Krishna Kothapalli, Ragae Ghaly

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

Learning the JavaMail API

The JavaMail API consists of some interfaces and classes used to send, read, and delete e-mail messages. The javax.mail and javax.mail.internet packages contain all the JavaMail core classes. The javax.mail.activation package represents the JavaBean Activation Framework.

Exploring the Core Classes

The JavaMail core classes, which belong to the javax.mail package, are Session, Message, Address, Authenticator, Transport, Store, and Folder. Table 20.1 gives a brief description of each core class.

Table 20.1. Summary of JavaMail Core Classes
ClassDescription
SessionThe key class of the API. A multithreaded object represents the connection factory.
MessageAn abstract class that models an e-mail message. Subclasses provide the ...

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