public class EmailTemplateService extends Object
| Constructor and Description |
|---|
EmailTemplateService() |
| Modifier and Type | Method and Description |
|---|---|
static void |
send(String subject,
org.gcube.common.portal.mailing.templates.Template selectedTemplate,
javax.servlet.http.HttpServletRequest httpServletRequest,
Recipient... emailrecipients)
Initialize the email with the following information:
The subject of the email
The template instance for this email
The httpServletRequest object
One or several "to" recipient addresses
|
public static void send(String subject, org.gcube.common.portal.mailing.templates.Template selectedTemplate, javax.servlet.http.HttpServletRequest httpServletRequest, Recipient... emailrecipients)
emailrecipients - an list of email addresses to be added in the TOsubject - the subject of your emailbodyTextHTML - the body of your email in HTMLhttpServletRequest - the httpServletRequest object if you have it, null otherwise (but the default sender will be applied in this case)Copyright © 2017. All Rights Reserved.