+

Search Tips   |   Advanced Search

Java Mail API


The Java Mail APIs provide a framework that is platform and protocol independent for building mail client applications that are based on Java . The Java Mail APIs are generic for sending and reading mail. They require service providers, known in the appserver as protocol providers, to interact with mail servers that run on pertaining protocols. For example, Simple Mail Transfer Protocol (SMTP) is a popular transport protocol for sending mail. Mail applications can connect to an SMTP server and send mail through it by using this SMTP protocol provider.

The appserver supports the Java Mail API, V1.4. In the application server, the Java Mail API is supported in all Web app components, namely:

In addition to service providers, the Java Mail API requires the Java BeansApplication Framework (JAF) to handle mail content not plain text, including MIME, URL pages, and file attachments.

The Java Mail APIs, the JAF, the service providers, and the protocols are shipped as part of the appserver. The API and related specifications are repackaged from materials that are licensed to Sun Microsystems.

Avoid trouble: If using Java 5 to run the code, you will need the JAF 1.1 package. For Java 6 and later, the JAF package is part of the run time environment.