Error added: 2007-07-24T15:58:12Z
CLASSPATH must point at mail.jar, not just the directory containing it.
The above answer works correctly. Just point the mail.jar location from classpath...
if you use eclipse then you must definitely include mail.jar in your build.xml even if you add it in your build path, then all be OK=)
apply the answer 1. If you are compiling your java pgm in the command prompt then once you set the classpath then exit the command prompt then compile it definitely works.
If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people
struggling with this too.
If you want to be notified via email when this is solved, enter your email address here: