blob: a57601bd0796bb26e3862f2dc62f4a6a739b95e8 [file] [log] [blame]
package opennlp.tools.apps.utils.email;
import javax.mail.*;
/**
* This contains the required informations for the smtp authorization!
*
*/
public class SMTP_Authenticator extends javax.mail.Authenticator {
private String username="bg7550@gmail.com";
private String password="pill0693";
public SMTP_Authenticator(String user, String pwd) {
username=user;
password=pwd;
}
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
}