hi, i have used
java mail for sending mail by making gmail as smtp server... its getting executed as and desktop application but when it comes to web application i couldn't execute it. problem is with the authentication class which is included in my application
class PasswordAuthenticator extends
javax.mail.Authenticator {
public PasswordAuthentication
getPasswordAuthentication() {
String user = "****************";
String pwd = "********";
return new PasswordAuthentication(user, pwd);
}
}
this class is called in the main program, of my mail application.. how to include both the classes in web.xml file when i use
servlets and how to include both main class and the above class in
JSP.