package com.vci.server.base.mail;
|
|
import javax.mail.Authenticator;
|
import javax.mail.PasswordAuthentication;
|
|
public class EmaiAuthenticator extends Authenticator {
|
|
private static final String userName = EmailConfPropreties.getStringProperty("email.userName");
|
private static final String passWord = EmailConfPropreties.getStringProperty("email.password");
|
//* 密码和用户的验证
|
public EmaiAuthenticator() {
|
super();
|
}
|
|
@Override
|
protected PasswordAuthentication getPasswordAuthentication() {
|
return new PasswordAuthentication(userName, passWord);
|
}
|
}
|