public class SmartEmailRequest extends Object
| Constructor and Description |
|---|
SmartEmailRequest(UUID smartEmailId,
String to,
ConsentToTrack consentToTrack)
Creates a new SmartEmailRequest with mandatory values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(Attachment attachment) |
void |
addBcc(String recipient) |
void |
addCc(String recipient) |
void |
addData(String name,
String value)
Add a data merge variable to be mail merged when the email is sent.
|
void |
addTo(String recipient) |
List<Attachment> |
getAttachments() |
Iterator<String> |
getBcc() |
Iterator<String> |
getCc() |
ConsentToTrack |
getConsentToTrack() |
Map<String,String> |
getData() |
UUID |
getSmartEmailId() |
Iterator<String> |
getTo() |
boolean |
isAddRecipientsToList() |
void |
setAddRecipientsToList(boolean addRecipientsToList) |
void |
setConsentToTrack(ConsentToTrack consentToTrack) |
public SmartEmailRequest(UUID smartEmailId, String to, ConsentToTrack consentToTrack)
smartEmailId - The SmartEmailID of the email to send.to - The recipient of the email.public UUID getSmartEmailId()
public void addTo(String recipient)
recipient - add a To recipient to the request.public void addCc(String recipient)
recipient - add a Cc recipient to the request.public void addBcc(String recipient)
recipient - add a Bcc recipient to the request.public void addData(String name, String value)
name - The name of the variable.value - The value of the variable.public void addAttachment(Attachment attachment)
attachment - attachment to add. content must be base64 encoded.public List<Attachment> getAttachments()
public void setAddRecipientsToList(boolean addRecipientsToList)
addRecipientsToList - add recipients to a list during send.public boolean isAddRecipientsToList()
public ConsentToTrack getConsentToTrack()
public void setConsentToTrack(ConsentToTrack consentToTrack)
consentToTrack - consent to track value of the recipientsCopyright © 2019. All rights reserved.