T
- public abstract class JsExtendableContactableEmailer<T extends Contactable> extends ContactableEmailer<T>
dayStamp, hourStamp, minuteStamp, sandbox, template, templateUrl, user, weekStamp
Constructor and Description |
---|
JsExtendableContactableEmailer(T user) |
JsExtendableContactableEmailer(T user,
Map<String,Object> context) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkOptOut()
Override this to check for additional conditions where the user might be
opted out.
|
boolean |
checkOptOut(JsExtendableContactableEmailer<T> self) |
String |
getCc()
Override this to set a custom list of CC addresses
|
String |
getCcJs(JsExtendableContactableEmailer<T> self) |
String |
getEmailType()
The type of the email, used for logging, defaults to using the
Java class name, can be overrident
|
String |
getEmailType(JsExtendableContactableEmailer<T> self) |
String |
getFromAddress()
Who is sending the email.
|
String |
getFromAddressJs(JsExtendableContactableEmailer<T> self) |
String |
getReplyTo()
Override this to set a custom-reply to address.
|
String |
getReplyToJs(JsExtendableContactableEmailer<T> self) |
String |
getSubject()
Your email subject.
|
abstract String |
getSubjectJs(Object self) |
String |
getTemplate()
The path to the jinja template.
|
abstract String |
getTemplate(Object self) |
String |
getUniqueKey()
This is used to prevent accidentally sending duplicate emails, by default the
uniqueKey is built from the subject, the contact id, the current week, and the email type.
|
String |
getUniqueKey(JsExtendableContactableEmailer<T> self) |
protected void |
onPrepareContext()
Override this to prepare additional context variables.
|
protected void |
onPrepareContext(JsExtendableContactableEmailer<T> self) |
checkDefaultOptOut, getContext, getSandbox, hasSeenKey, isTransactional, markSeenKey, onPreSend, prepareContext, put, sendEmail, setSandbox, shouldLog, updateContext
public JsExtendableContactableEmailer(T user)
public JsExtendableContactableEmailer(T user, Map<String,Object> context)
public String getTemplate()
ContactableEmailer
getTemplate
in class ContactableEmailer<T extends Contactable>
public abstract String getTemplate(Object self)
public String getSubject()
ContactableEmailer
getSubject
in class ContactableEmailer<T extends Contactable>
public abstract String getSubjectJs(Object self)
public String getFromAddress()
ContactableEmailer
getFromAddress
in class ContactableEmailer<T extends Contactable>
public String getFromAddressJs(JsExtendableContactableEmailer<T> self)
public String getReplyTo()
ContactableEmailer
getReplyTo
in class ContactableEmailer<T extends Contactable>
public String getReplyToJs(JsExtendableContactableEmailer<T> self)
public String getCc()
ContactableEmailer
getCc
in class ContactableEmailer<T extends Contactable>
public String getCcJs(JsExtendableContactableEmailer<T> self)
public String getUniqueKey()
ContactableEmailer
getUniqueKey
in class ContactableEmailer<T extends Contactable>
public String getUniqueKey(JsExtendableContactableEmailer<T> self)
protected void onPrepareContext()
ContactableEmailer
onPrepareContext
in class ContactableEmailer<T extends Contactable>
protected void onPrepareContext(JsExtendableContactableEmailer<T> self)
public String getEmailType()
ContactableEmailer
getEmailType
in class ContactableEmailer<T extends Contactable>
public String getEmailType(JsExtendableContactableEmailer<T> self)
public boolean checkOptOut()
ContactableEmailer
checkOptOut
in class ContactableEmailer<T extends Contactable>
public boolean checkOptOut(JsExtendableContactableEmailer<T> self)
Copyright © 2016. All rights reserved.