public class EmailServiceImpl extends Object implements EmailService
| Modifier and Type | Field and Description |
|---|---|
static String |
RECOMMENTATION_EMAIL_TEMPLATE |
| Constructor and Description |
|---|
EmailServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
sendMail(String from,
String subject,
String body)
Send an email message.
|
void |
sendTemplatedMultipartEmail(String subject,
String templateName,
Locale locale,
List<String> recipients,
String from,
Map<String,Object> templateVars)
Send a (multipart) email message using a (freemarker) template.
|
void |
setAdministrativeEmail(String administrativeEmail) |
void |
setFreemarkerConfiguration(freemarker.template.Configuration freemarkerConfiguration) |
public static final String RECOMMENTATION_EMAIL_TEMPLATE
public void sendMail(String from, String subject, String body)
sendMail in interface EmailServicepublic void sendTemplatedMultipartEmail(String subject, String templateName, Locale locale, List<String> recipients, String from, Map<String,Object> templateVars)
EmailServicesendTemplatedMultipartEmail in interface EmailServicesubject - The subject of the emailtemplateName - the name of the template (it will lookup templateName.ftl and
templateName-plaintext.ftl in the path from the freemarker
configuration)locale - The locale to use for the templaterecipients - List of recipients (being email addresses)from - The 'from' email address of the sendertemplateVars - a map with variables to use in the Freemarker templatepublic void setAdministrativeEmail(String administrativeEmail)
public void setFreemarkerConfiguration(freemarker.template.Configuration freemarkerConfiguration)
Copyright © 2013–2014 SURFnet bv, The Netherlands. All rights reserved.