How do I configure Tomcat to allow me to use JavaMail in my web application?
To run a web application using JavaMail, you can add the JavaMail mail.jar file and, if you’re not using JDK 1.6 or newer, the JavaBeans Activation Framework activation.jar file to the lib directory under the directory in which you installed Tomcat. This will cause Tomcat to include these jar files in its classpath automatically. For details, see JNDI Resources HOW-TO in the Tomcat documentation.