public class DefaultMailSender extends Object implements MailSender
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
static org.slf4j.Logger |
logger |
protected String |
login |
protected String |
password |
protected int |
port |
protected MailQueue |
queue |
protected String |
server |
protected boolean |
ssl |
protected boolean |
tls |
Constructor and Description |
---|
DefaultMailSender(MailQueue queue) |
Modifier and Type | Method and Description |
---|---|
String |
getLogin() |
String |
getPassword() |
int |
getPort() |
String |
getServer() |
boolean |
isSsl() |
boolean |
isTls() |
protected void |
markFailed(String id,
Throwable e) |
int |
runOnce(Set<String> idsToMarkAsSent) |
protected void |
send(Email emailBean) |
void |
setLogin(String login) |
void |
setPassword(String password) |
void |
setPort(int port) |
void |
setServer(String server) |
void |
setSsl(boolean ssl) |
void |
setTls(boolean tls) |
public static final String copyright
protected final MailQueue queue
protected String server
protected int port
protected boolean ssl
protected boolean tls
protected String login
protected String password
public static final org.slf4j.Logger logger
public DefaultMailSender(MailQueue queue)
public int runOnce(Set<String> idsToMarkAsSent)
runOnce
in interface MailSender
protected void send(Email emailBean) throws org.apache.commons.mail.EmailException
org.apache.commons.mail.EmailException
public String getServer()
getServer
in interface MailSender
public void setServer(String server)
setServer
in interface MailSender
public int getPort()
getPort
in interface MailSender
public void setPort(int port)
setPort
in interface MailSender
public boolean isSsl()
isSsl
in interface MailSender
public void setSsl(boolean ssl)
setSsl
in interface MailSender
public boolean isTls()
isTls
in interface MailSender
public void setTls(boolean tls)
setTls
in interface MailSender
public String getLogin()
getLogin
in interface MailSender
public void setLogin(String login)
setLogin
in interface MailSender
public String getPassword()
getPassword
in interface MailSender
public void setPassword(String password)
setPassword
in interface MailSender