nl.surfnet.coin.csa.service
Interface EmailService

All Known Implementing Classes:
EmailServiceImpl

public interface EmailService


Method Summary
 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.
 

Method Detail

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 email
templateName - 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 template
recipients - List of recipients (being email addresses)
from - The 'from' email address of the sender
templateVars - a map with variables to use in the Freemarker template


Copyright © 2013 SURFnet bv, The Netherlands. All Rights Reserved.