@Service public class MailService extends Object
Constructor and Description |
---|
MailService() |
Modifier and Type | Method and Description |
---|---|
protected String |
readEmailTemplate(String emailName,
String templateLocation) |
void |
sendWelcomeEmail(String username,
String password,
String from,
String receiver) |
protected void |
setFrom(javax.mail.Message msg,
String from,
String emailName) |
protected void |
setRecipients(javax.mail.Message msg,
String receiver,
String emailName) |
protected void |
setSubject(javax.mail.Message msg,
String foxType,
String emailName) |
protected void |
setText(javax.mail.Message msg,
String template,
Map<String,String> replacements,
String emailName) |
protected void |
validateParameters(String username,
String password,
String from,
String receiver,
String emailName) |
public void sendWelcomeEmail(String username, String password, String from, String receiver)
protected void validateParameters(String username, String password, String from, String receiver, String emailName)
protected void setText(javax.mail.Message msg, String template, Map<String,String> replacements, String emailName)
protected void setRecipients(javax.mail.Message msg, String receiver, String emailName)
Copyright © 2015. All rights reserved.