You need to include the mail package that is being used, in your classpath, before you can test this example.
 
----- Original Message -----
From: Hengtai Yu
Sent: Friday, April 21, 2000 8:38 AM
Subject: JavaMail

Hi,
I try to use JavaMail-1.1.2 to send email from servlets. When I use example to test, messages are:
java.lang.NoClassDefFoundError: javax/mail/Session at
JavaMailServlet.doPost(JavaMailServlet.java:35). I check line 35 in
JavaMailServlet.java, they are:

Properties props=3D new Properties();
props.put("mail.smtp.host",host);    file://**** this is line 35 ********
Session ssn =3D Session.getDefaultInstance(props,null);

Does any one know  what is wrong here?

Thanks

Hengtai

Reply via email to