dognobbler
Programmer
I have installed Tomcat 4.1.24 and am trying to create a form email. I tested the default SendMailServlet that comes with the server (which is located here /examples/SendMailServlet) and it worked fine.
So what I wanted to do was to edit that servlet to make a few superficial (ie HTML ) changes. When I try to javac that file I get the following errors
sendMail.java:7: package javax.mail does not exist
import javax.mail.Message;
^
sendMail.java:8: package javax.mail does not exist
import javax.mail.Session;
^
sendMail.java:9: package javax.mail does not exist
import javax.mail.Transport;
^
sendMail.java:10: package javax.mail.internet does not exist
import javax.mail.internet.InternetAddress;
^
sendMail.java:11: package javax.mail.internet does not exist
import javax.mail.internet.MimeMessage;
It appear that I am missing the mail package. Could anyone explain to me what I need to do be able to javac this file?
Thanks
Andy
So what I wanted to do was to edit that servlet to make a few superficial (ie HTML ) changes. When I try to javac that file I get the following errors
sendMail.java:7: package javax.mail does not exist
import javax.mail.Message;
^
sendMail.java:8: package javax.mail does not exist
import javax.mail.Session;
^
sendMail.java:9: package javax.mail does not exist
import javax.mail.Transport;
^
sendMail.java:10: package javax.mail.internet does not exist
import javax.mail.internet.InternetAddress;
^
sendMail.java:11: package javax.mail.internet does not exist
import javax.mail.internet.MimeMessage;
It appear that I am missing the mail package. Could anyone explain to me what I need to do be able to javac this file?
Thanks
Andy