Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail with jsp

Status
Not open for further replies.

sensory21

Programmer
Jan 27, 2004
79
GB
I've downloaded the JavaMail as unzip it as

c:\javamail-1.2
is it the right path?

for java Im using:
c:\Program Files\j2sdk_nb\j2sdk1.4.2
do i need to install jswdk1.0.1 ?
if yes where?

and last but not least I found this (very good) site explaining the situation but still I don't grasp everything like where to put the files:

thanks for your help
Vero
 
Hi,

In the class path you need to have mail.jar and activitaion.jar file that are required to send an E-Mail from the application.

Copy the mail.jar and activation.jar into your web application lib directory. If you are using JRun it should be in the lib directory under the JRun.

To Make your life smiple download the commons-fileupload if you want to send an Attachment with E-Mail.

Hope this will help you..

Cheers
Venu
 
It doesn't matter where you put it, as long as you set your CLASSPATH correctly. Eg :

set JAVAMAIL_HOME=c:\javamail-1.2
set CLASSPATH=%CLASSPATH%;%JAVAMAIL_HOME%\lib\mail.jar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top