JavaMail Sessions

The Application Server includes the JavaMail API reference implementation. The JavaMail API is a set of abstract Application Programming Interfaces that model a mail system. Using the JavaMail API, you can add email capabilities to your Application Server applications. JavaMail provides access from Java applications to IMAP- and POP3 mail servers on your network or the Internet.

To configure JavaMail for use in the Application Server, create a Mail Session in the Admin Console. The server-side components and applications can then access JavaMail services with JNDI, using Session properties you pre-configure for them. For example, by creating a Mail Session, you can designate the mail hosts, transport and store protocols, and the default mail user in the Admin Console so that components that use JavaMail do not have to set these properties. Applications that are heavy email users benefit because the Sun Java System Application Server creates a single Session object and makes it available via JNDI to any component that needs it.

For more information about the JavaMail API, see JavaMail API web page.

This section describes how to configure resources for applications that use the JavaMail API: