To run the JavaMailServlet, you must add the JavaMail and JavaBeans
Activation Framework jar files 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.
(Some packages of Tomcat version 4 include JavaMail support.)
Depending on the version of Tomcat used, the mail.jar
and activation.jar
files should be copied to the
lib
directory or to an appropriate subdirectory of the
lib
directory.