An Overview of the Java Mail API
The Mail API itself is a set of abstract Java classes that describe an electronic mail system in a platform-independent manner. “Service Providers” are extensions of these classes that describe a particular email system, such as the Internet mail system.
JavaSoft provides a free (binary) reference implementation of the Mail API, which includes a provider for Internet-style email, including the SMTP and IMAP protocols. No implementation of POP has yet been announced, and it is not clear whether this will be implemented by Sun or a third party. Access to the source code of the reference implementation is available for a fee.
Other possible providers that could be provided by a third party might handle proprietary electronic mail environments such as Lotus Notes, MAPI, ccMail, and so on. The Mail API allows developers to implement these protocols in a manner that complies with the emerging Java standard.
Objects that use an implementation of the Mail API can request standard services from the JavaBeans Activation Framework (JAF), part of the new Glasgow specification of JavaBeans. Using these services, Mail API implementations can request the content type of a data stream and determine the actions that may be performed on it. In this way, JavaBeans can dynamically change their behavior based on the existence of other Beans within their environment. Those creating an email user agent, for example, can use the JAF to assist in the handling of MIME types ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access