Originally posted by Frank Carver: Someone else asked this, and I gave a code example and installation/running examples here. Have fun.
Thanks for ur help. I tried the code which u have given and I get this exception
Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/Data Source at Mailer.sendMail(Mailer.java:27) at Mailer.main(Mailer.java:44)
Joined: Jan 07, 1999
Sorry for the delay in replying, I was on vacation. It looks as if you haven't added the "activation.jar" to your classpath or lib/ext directory as described in my instructions. Remember that Java Mail needs both "mail.jar" and "activation.jar".
I am using javamail to send mails and that works at almost all locations,But I have a small problem at one location where we have only SMTP provider. mail.jar and activation.jar files only works on ESMTP provider. Do u have any idea about sending mails using only SMTP. Tahnks in Advance ------------------ Ramana Sierra Atlantic. 510-742-4270
WHile running a java program in windows to read and save an attachment from a mail the following error occurs,the program works properly on sun machine their is some problem regardinf class path but i am not able to fix it. can somebody help me in debugging this error Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/Data Source at com.sun.mail.pop3.POP3Folder.createMessage(POP3Folder.java:284) at com.sun.mail.pop3.POP3Folder.getMessage(POP3Folder.java:265) at javax.mail.Folder.getMessages(Folder.java:903) at receive.main(receive.java:30)