With JavaMail, you specify the mail sending and receiving-related settings as session properties when the javax.mail.Session class is created.
The session properties include the following types:
- Session properties provided with JavaMail APIs
- Session properties provided by the SMTP provider and SMTPS provider stated in the JavaMail specifications
- Session properties provided by the POP3 provider stated in the JavaMail specifications
- SMTP provider and SMTPS provider-specific session properties
- POP3 provider-specific session properties
The values set for the session properties must be specified as character strings enclosed within " (double quotation marks).
Note that this subsection describes the SMTP provider and SMTPS provider-specific session properties and the POP3 provider-specific session properties.
- Organization of this section
- 8.2.1 Session properties for connecting to the SMTP server
- 8.2.2 Session properties for connecting to the POP3 server