Interface Email
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEMAIL_CLASSIFICATIONThe email classification type would be stored as this parameter name in the email
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetContent()Get the email contentjava.lang.StringgetFromAddress()Get the email address for sender.ResourcegetResource()java.lang.StringgetSubject()Get the email subject.booleanisHtml()Whether the content is plain text or HTMLvoidsetContent(java.lang.String content)Set the email contentvoidsetFromAddress(java.lang.String fromAddress)Set the sender's email address.voidsetHtml(boolean isHtml)Set whether content is plain text or HTMLvoidsetResource(Resource resource)Set the resource to that of associated newslettervoidsetSubject(java.lang.String subject)Set the email subject
-
-
-
Field Detail
-
EMAIL_CLASSIFICATION
static final java.lang.String EMAIL_CLASSIFICATION
The email classification type would be stored as this parameter name in the email- See Also:
- Constant Field Values
-
-
Method Detail
-
getSubject
java.lang.String getSubject()
Get the email subject.- Returns:
- the subject for the email.
-
setSubject
void setSubject(java.lang.String subject)
Set the email subject- Parameters:
subject- The email subject.
-
getContent
java.lang.String getContent()
Get the email content- Returns:
- The email content which could be a text or html.
-
setContent
void setContent(java.lang.String content)
Set the email content- Parameters:
content- The email content which could be text or html
-
isHtml
boolean isHtml()
Whether the content is plain text or HTML- Returns:
- true if HTML, false otherwise.
-
setHtml
void setHtml(boolean isHtml)
Set whether content is plain text or HTML- Parameters:
isHtml- true if HTML, false otherwise.
-
getFromAddress
java.lang.String getFromAddress()
Get the email address for sender.- Returns:
- the sender's email address.
-
setFromAddress
void setFromAddress(java.lang.String fromAddress)
Set the sender's email address.- Parameters:
fromAddress- sender's email address
-
setResource
void setResource(Resource resource)
Set the resource to that of associated newsletter- Parameters:
resource- of associated newsletter
-
getResource
Resource getResource()
- Returns:
- resource associated with newsletter
-
-