@Component(value="emailService") public class EmailService extends Object
| Constructor and Description |
|---|
EmailService() |
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
String |
getPort() |
String |
getSender() |
protected void |
init() |
void |
sendEmail(String recipient,
String subject,
String content)
Sends an email from the default sender using the supplied details.
|
void |
sendEmail(String recipient,
String subject,
String content,
String sender)
Sends an email with the supplied details.
|
void |
setHost(String host) |
void |
setPort(String port) |
void |
setSender(String sender) |
@PostConstruct protected void init()
public void sendEmail(String recipient, String subject, String content, String sender)
recipient - subject - content - sender - public void sendEmail(String recipient, String subject, String content)
recipient - subject - content - public String getHost()
public void setHost(String host)
host - the host to setpublic String getPort()
public void setPort(String port)
port - the port to setpublic String getSender()
public void setSender(String sender)
sender - the sender to setCopyright © 2014. All rights reserved.