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, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendpublic 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
MailSendersend in interface MailSenderMailSenderExceptionpublic void send(String subject, String content, String toMailbox, String toName, String fromMailbox, String fromName, Map headers) throws MailSenderException
MailSendersend in interface MailSenderMailSenderExceptionpublic void verify(MailMessage message) throws MailSenderException
MailSenderverify in interface MailSenderMailSenderExceptionCopyright © 2015. All Rights Reserved.