This feature allows applications to interact with an external mail server by using the JavaMail 1.5 API, which provides common store and transport protocols, such as POP3, IMAP, and SMTP.

Enabling this feature

To enable the JavaMail 1.5 feature, add the following element declaration into your server.xml file, inside the featureManager element:

<feature>javaMail-1.5</feature>

Feature configuration elements

Standard API packages provided by this feature

  • javax.activation

  • javax.annotation

  • javax.annotation.security

  • javax.annotation.sql

  • javax.mail

  • javax.mail.event

  • javax.mail.internet

  • javax.mail.search

  • javax.mail.util

Third-party API packages provided by this feature

  • com.sun.mail

  • com.sun.mail.auth

  • com.sun.mail.handlers

  • com.sun.mail.iap

  • com.sun.mail.imap

  • com.sun.mail.imap.protocol

  • com.sun.mail.pop3

  • com.sun.mail.smtp

  • com.sun.mail.util

  • com.sun.mail.util.logging

Supported Java versions

  • JavaSE-1.8

  • JavaSE-11.0

  • JavaSE-17.0

  • JavaSE-21.0

  • JavaSE-22.0

Features that enable this feature

Developing a feature that depends on this feature

If you are developing a feature that depends on this feature, include the following item in the Subsystem-Content header in your feature manifest file.

com.ibm.websphere.appserver.javaMail-1.5; type="osgi.subsystem.feature"

SPI packages provided by this feature

  • com.ibm.ws.adaptable.module.structure

  • com.ibm.ws.anno.classsource.specification

  • com.ibm.wsspi.adaptable.module

  • com.ibm.wsspi.adaptable.module.adapters

  • com.ibm.wsspi.anno.classsource

  • com.ibm.wsspi.anno.info

  • com.ibm.wsspi.anno.service

  • com.ibm.wsspi.anno.targets

  • com.ibm.wsspi.anno.util

  • com.ibm.wsspi.artifact

  • com.ibm.wsspi.artifact.equinox.module

  • com.ibm.wsspi.artifact.factory

  • com.ibm.wsspi.artifact.factory.contributor

  • com.ibm.wsspi.artifact.overlay