nl.surfnet.coin.csa.service
Interface EmailService
- All Known Implementing Classes:
- EmailServiceImpl
public interface EmailService
sendMail
void sendMail(String from,
String subject,
String body)
- Send an email message.
- Parameters:
from - subject - body -
sendTemplatedMultipartEmail
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. This method
will look up the html and plaintext freemarker template and will replace
the placeholders with the values in the templateVars. A Multipart email
message will be created and send.
- Parameters:
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 template
Copyright © 2013 SURFnet bv, The Netherlands. All Rights Reserved.