Windows
-------
1. Unzip the javamail-1_3_2.zip archive. (you may have already done this)
2. Set your CLASSPATH to include the "mail.jar" file obtained from
the download, as well as the current directory.
Assuming you unzipped javamail-1_3_2.zip in c:\download the
following would work:
set CLASSPATH=%CLASSPATH%;c:\download\javamail-1.3.2\mail.jar;.
Also include the "activation.jar" file that you obtained from
downloading the JavaBeans Activation Framework, in your CLASSPATH.
set CLASSPATH=%CLASSPATH%;c:\download\activation\activation.jar
3. Go to the demo directory
4. Compile any demo using your java compiler. For example:
javac msgshow.java
5. Run the demo. The '-' option lists the required and optional
command-line options to successfully run any demo. For example:
java msgshow -
lists the available options. And
java msgshow -T imap -H <mailserver> -U <username> -P <passwd> -f INBOX 5
uses the IMAP protocol to display message number 5 from your INBOX.
(Additional instructions on how to run the simple mail reader demo
and servlet demo are provided in demo/client/README.txt and
demo/servlet/README.txt, respectively.)