public abstract class AbstractMailSender extends org.codehaus.plexus.logging.AbstractLogEnabled implements MailSender
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SMTP_PORT |
ROLE
Constructor and Description |
---|
AbstractMailSender() |
Modifier and Type | Method and Description |
---|---|
String |
getPassword() |
String |
getSmtpHost() |
int |
getSmtpPort() |
String |
getUsername() |
boolean |
isSslMode() |
void |
send(String subject,
String content,
String toMailbox,
String toName,
String fromMailbox,
String fromName)
Send a mail message.
|
void |
send(String subject,
String content,
String toMailbox,
String toName,
String fromMailbox,
String fromName,
Map headers)
Send a mail message.
|
void |
setPassword(String password) |
void |
setSmtpHost(String smtpHost) |
void |
setSmtpPort(int smtpPort) |
void |
setSslMode(boolean sslMode) |
void |
setUsername(String username) |
void |
verify(MailMessage message)
Verify the content of a mail message.
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
send
public static final int DEFAULT_SMTP_PORT
public String getSmtpHost()
public void setSmtpHost(String smtpHost)
public int getSmtpPort()
public void setSmtpPort(int smtpPort)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public boolean isSslMode()
public void setSslMode(boolean sslMode)
public void send(String subject, String content, String toMailbox, String toName, String fromMailbox, String fromName) throws MailSenderException
MailSender
send
in interface MailSender
MailSenderException
public void send(String subject, String content, String toMailbox, String toName, String fromMailbox, String fromName, Map headers) throws MailSenderException
MailSender
send
in interface MailSender
MailSenderException
public void verify(MailMessage message) throws MailSenderException
MailSender
verify
in interface MailSender
MailSenderException
Copyright © 2017. All Rights Reserved.