com.elasticpath.service.misc
Interface EmailService

All Superinterfaces:
EpService
All Known Implementing Classes:
EmailServiceImpl

public interface EmailService
extends EpService

Provides image rendering service.


Method Summary
 void sendMail(java.util.List toEmailList, java.lang.String subject, java.lang.String txtTemplate, java.util.Map templateResources)
          Sends a txt only email to a list of recipients using the provided velocity Templates.
 void sendMail(java.util.List toEmailList, java.lang.String subject, java.lang.String htmlTemplate, java.lang.String txtTemplate, java.util.Map templateResources)
          Sends a multipart mime (html & txt) email to a list of recipients using the provided velocity Templates.
 void sendMail(java.lang.String toEmail, java.lang.String subject, java.lang.String txtTemplate, java.util.Map templateResources)
          Sends a txt only email to a recipient using the provided velocity Templates.
 void sendMail(java.lang.String toEmail, java.lang.String subject, java.lang.String htmlTemplate, java.lang.String txtTemplate, java.util.Map templateResources)
          Sends a multipart mime (html & txt) email to a recipient using the provided velocity Templates.
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

sendMail

void sendMail(java.util.List toEmailList,
              java.lang.String subject,
              java.lang.String txtTemplate,
              java.util.Map templateResources)
Sends a txt only email to a list of recipients using the provided velocity Templates.

Parameters:
toEmailList - a list of recipient email addresses.
subject - the subject of the email.
txtTemplate - the txt version of the velocity template to render.
templateResources - a map of resources required to render the provided template.

sendMail

void sendMail(java.util.List toEmailList,
              java.lang.String subject,
              java.lang.String htmlTemplate,
              java.lang.String txtTemplate,
              java.util.Map templateResources)
Sends a multipart mime (html & txt) email to a list of recipients using the provided velocity Templates.

Parameters:
toEmailList - a list of recipient email addresses.
subject - the subject of the email.
htmlTemplate - the html version of the velocity template to render.
txtTemplate - the txt version of the velocity template to render.
templateResources - a map of resources required to render the provided template.

sendMail

void sendMail(java.lang.String toEmail,
              java.lang.String subject,
              java.lang.String txtTemplate,
              java.util.Map templateResources)
Sends a txt only email to a recipient using the provided velocity Templates.

Parameters:
toEmail - the email address of the recipient.
subject - the subject of the email.
txtTemplate - the txt version of the velocity template to render.
templateResources - a map of resources required to render the provided template.

sendMail

void sendMail(java.lang.String toEmail,
              java.lang.String subject,
              java.lang.String htmlTemplate,
              java.lang.String txtTemplate,
              java.util.Map templateResources)
Sends a multipart mime (html & txt) email to a recipient using the provided velocity Templates.

Parameters:
toEmail - the email address of the recipient.
subject - the subject of the email.
htmlTemplate - the html version of the velocity template to render.
txtTemplate - the txt version of the velocity template to render.
templateResources - a map of resources required to render the provided template.