How can I send mail using sun.net.smtp package through application
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, August 5, 2002 06:57 AM

Hi

When using servlets, I can send mail using smtp package, but when using application, mail is not sent, giving exception as NoClassDefFoundError. Actually through application the package sun.net.smtp is not found to my class files. But this is found using servlets. I am using Apache webserver with jserv installed on it, and webserver is installed on linux. Please help me.

Re: How can I send mail using sun.net.smtp package through application

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, August 5, 2002 10:56 AM

You need to have the Jar with the JavaMail API, on the CLASSPATH used by your application (it's already there, in the classpath used by the jserv app server).

About | Sitemap | Contact