public class GenericMailMessage extends MailMessage
ACTIVATION_LINK_PREFIX| Constructor and Description |
|---|
GenericMailMessage(String messageKey,
Locale locale,
Map<String,Object> model,
User... recipients)
Constructor.
|
GenericMailMessage(String messageKey,
Locale locale,
User... recipients)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToModel(String key,
Object value)
Adds the element to the mail model.
|
void |
prepareModel(Map<String,Object> model)
Prepare a model of key-value pairs which will be passed to the template engine when the
content and subject templates should be rendered.
|
addBcc, addCc, addTo, addTo, addTo, getBcc, getCc, getContentTemplate, getContentTemplateId, getFromAddress, getFromAddressName, getGlobalModel, getLocale, getMessageIdentifier, getReplyToAddress, getReplyToAddressName, getSubjectTemplate, getSubjectTemplateId, getTo, getToAddresses, getToAddressPersonalName, isHtmlMail, isInsertRecipientPersonalName, setFromAddress, setFromAddressName, setInsertRecipientPersonalNamepublic GenericMailMessage(String messageKey, Locale locale, User... recipients)
messageKey - The message key of the template.recipients - users to send the message tolocale - The locale.public GenericMailMessage(String messageKey, Locale locale, Map<String,Object> model, User... recipients)
messageKey - The message key of the template.recipients - users to send the message tolocale - The locale for sending the messagemodel - Model with key value pairs which should be available when rendering the template.public void addToModel(String key, Object value)
key - The key.value - The value.public void prepareModel(Map<String,Object> model)
prepareModel in class MailMessagemodel - The model to prepare. It will be initialized with the settings returned by
MailMessage.getGlobalModel().Copyright © 2019 Communote team. All rights reserved.