public class TextMailMessage extends MailMessage
ACTIVATION_LINK_PREFIX
Constructor and Description |
---|
TextMailMessage(String subject,
String content,
String to) |
TextMailMessage(String subject,
String content,
String to,
String fromEmailAddress,
String fromName) |
Modifier and Type | Method and Description |
---|---|
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, setInsertRecipientPersonalName
public TextMailMessage(String subject, String content, String to)
subject
- The subject.content
- The content.to
- Email address of the recipient.public TextMailMessage(String subject, String content, String to, String fromEmailAddress, String fromName)
subject
- The subject.content
- The content.to
- Email address of the recipient.fromEmailAddress
- The senders email address. Might be null.fromName
- The senders name. Might be null.public void prepareModel(Map<String,Object> model)
MailMessage
prepareModel
in class MailMessage
model
- The model to prepare. It will be initialized with the settings returned by
MailMessage.getGlobalModel()
.Copyright © 2019 Communote team. All rights reserved.