- 
 @Target(TYPE) @Retention(RUNTIME) @Repeatable(MailSessionDefinitions.class) public @interface MailSessionDefinition Annotation used by Jakarta EE applications to define aMailSessionto be registered with JNDI. TheMailSessionmay be configured by setting the annotation elements for commonly usedSessionproperties. Additional standard and vendor-specific properties may be specified using thepropertieselement.The session will be registered under the name specified in the nameelement. It may be defined to be in any validJakarta EEnamespace, and will determine the accessibility of the session from other components.
- 
- 
Required Element SummaryRequired Elements Modifier and Type Required Element Description java.lang.StringnameJNDI name by which the mail session will be registered.
 - 
Optional Element SummaryOptional Elements Modifier and Type Optional Element Description java.lang.StringdescriptionDescription of this mail session.java.lang.StringfromFrom address for the user.java.lang.StringhostHost name for the mail server.java.lang.StringpasswordPassword to use for authentication.java.lang.String[]propertiesProperties to include in the Session.java.lang.StringstoreProtocolStore protocol name.java.lang.StringtransportProtocolTransport protocol name.java.lang.StringuserUser name to use for authentication.
 
-