public interface EmailService
| 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 sendMail(String from, String subject, String body)
from - subject - body - void sendTemplatedMultipartEmail(String subject, String templateName, Locale locale, List<String> recipients, String from, Map<String,Object> templateVars)
subject - 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 templateCopyright © 2013–2014 SURFnet bv, The Netherlands. All rights reserved.