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

Enabling this feature

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


Feature configuration elements

Standard API packages provided by this feature

  • javax.mail

  • javax.mail.event

  • javax.mail.internet


  • 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-20.0

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.; type="osgi.subsystem.feature"