# Java-Mail License

JavaMail uses several licenses:

* Most of the JavaMail source code is licensed under the CDDL license and the GPLv2 with Classpath Exception license; see the license information at the top of each source file.
* The source code for the demo programs is licensed under the BSD license; again, the license is in each source file.
* The binary jar files published to the Maven repository are licensed under the same CDDL and GPLv2+CE licenses as the corresponding source code; see the file

  `META-INF/LICENSE.txt`

  in each jar file.
* The JavaMail API specification is licensed under the standard JCP Specification License.

You'll find the text of the CDDL and GPLv2+CE licenses in the workspace in the file`mail/src/main/resources/META-INF/LICENSE.txt`. The specification license is in the workspace at`mail/src/main/java/doc-files/speclicense.html`. Don't let the presence of these license files in the workspace confuse you into thinking that they apply to all files in the workspace.

You should always read the license file included with every download, and read the license text included in every source file.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doku.jverein.de/sonstiges/lizenzen/java-mail-license.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
