November 2003
Intermediate to advanced
1488 pages
36h 35m
English
The JavaMail API contains four packages: javax.mail, javax.mail.event, javax.mail.internet, and javax.mail.search, although all the core classes are found in the top-level javax.mail package.
The following sections outline the core classes of the javax.mail package.
A Session object is both an object factory and a connection to the mail providers. It provides a hook on the security functionality, and is used to access the other objects of the mail API. The Session class is used to define a basic mail session and it's through the Session object that everything else works. You can use an instance of the java.util.Properties class to get information such as the mail server's name, the username, and the password. ...
Read now
Unlock full access