I tried the very first exercis given by the Sun online training. The file was msgsend.java bundled in the javamail-1.3.1.zip. I followed the instrucitons given at
http://developer.java.sun.com/developer/onlineTraining/JavaMail/exercises/MailSetup/help.html 1. downloaded the latest versions of javamail api; i.e. javamail-1_3.1.zip
2. downloaded the java activation framework jaf-1_0_2.zip
3. unzipped both the files and placed the activation.jar and mail.jar
in C:\j2sdk1.4.1_02\jre\lib\ext
4. then C:\javamail-1.3.1\demo>javac msgsend.java (compilation was
successful)
5. then tried running the program
C:\javamail-1.3.1\demo>java msgsend -o
jiapei_jen@yahoo.com -M
SMTP.mail.yahoo.com
abcxyz@yahoo.com I got
Exception in
thread "main" java.lang.NoClassDefFoundError:
javax/mail/Message
I do not know what went wrong. I thought that I was supposed to be asked to give a Subject.
AND
please tolerate my simple minded question:
I have registered at
http://www.mycgiserver.com that site has the SMTP server.
I am working using my PC at home. How does my machine access the SMTP server at the mycgiserver.com so that I can use JavaMail to send mails/messages? :roll:
[ August 22, 2003: Message edited by: JiaPei Jen ]