Appengine jar for javax.mail

To use javax.mail in an App Engine project, you'll need to include the necessary JAR files in your project's classpath. Here are the steps:

  1. Download the javax.mail JAR files: You can download the javax.mail JAR files from the following locations:
  2. Add the JAR files to your project's classpath:
    • If you're using Maven, add the following dependencies to your pom.xml file:
      <dependencies>
      <dependency>
        <groupId>javax.mail</groupId>
        <artifactId>javax.mail-api</artifactId>
        <version>1.6.2</version>
      </dependency>
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-email</artifactId>
        <version>1.5</version>
      </dependency>
      </dependencies>
    • If you're not using Maven, you can add the JAR files to your project's classpath manually. For example, in Eclipse, you can add the JAR files to your project's build path by right-clicking on the project, selecting "Properties", then "Java Build Path", and finally clicking "Add External JARs" and selecting the downloaded JAR files.
  3. Configure your App Engine project to use the javax.mail JAR files:
    • In your appengine-web.xml file, add the following configuration:
      <appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
      ...
      <library>
        <exclude>javax.mail-api-1.6.2.jar</exclude>
        <exclude>commons-email-1.5.jar</exclude>
      </library>
      </appengine-web-app>

      This configuration tells App Engine to include the javax.mail JAR files in your project's classpath.

That's it! With these steps, you should be able to use javax.mail in your App Engine project.