Where do I find a list of all available Java mail properties that I can pass to the Session object? I am only able to find basic properties in the API. Browsing blogs to find some more properties isn't good. There must be some list somewhere?
Asked
Active
Viewed 3.5k times
57
-
The mail properties are on the mail server. – Roman C May 16 '13 at 18:33
-
1have you taken a look to this link by the way? there are a goog quantity of properties: http://connector.sourceforge.net/doc-files/Properties.html – Marcelo Tataje May 16 '13 at 18:38
-
connector.sourceforge... link is merely a subset of properties, with links to other small subsets. – Pafnucy Nov 29 '17 at 14:40
1 Answers
68
In the api is a reference to the properties for the specific sun protocol providers. Not sure if you were looking for these:
- https://javaee.github.io/javamail/docs/api/com/sun/mail/imap/package-summary.html
- https://javaee.github.io/javamail/docs/api/com/sun/mail/pop3/package-summary.html
- https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html
These are also set on the session object but you use them on your own risk since in other mail implementations they are maybe not supported or they change in the future.

mszalbach
- 10,612
- 1
- 41
- 53