Interface Email
Defines interface of email/newsletter to be sent to emailprovider. The methods for name and identifier are inherited from NamedType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe email classification type would be stored as this parameter name in the email -
Method Summary
Modifier and TypeMethodDescriptionGet the email contentGet the email address for sender.Get the email subject.booleanisHtml()Whether the content is plain text or HTMLvoidsetContent(String content) Set the email contentvoidsetFromAddress(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(String subject) Set the email subject
-
Field Details
-
EMAIL_CLASSIFICATION
The email classification type would be stored as this parameter name in the email- See Also:
-
-
Method Details
-
getSubject
String getSubject()Get the email subject.- Returns:
- the subject for the email.
-
setSubject
Set the email subject- Parameters:
subject- The email subject.
-
getContent
String getContent()Get the email content- Returns:
- The email content which could be a text or html.
-
setContent
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
String getFromAddress()Get the email address for sender.- Returns:
- the sender's email address.
-
setFromAddress
Set the sender's email address.- Parameters:
fromAddress- sender's email address
-
setResource
Set the resource to that of associated newsletter- Parameters:
resource- of associated newsletter
-
getResource
Resource getResource()- Returns:
- resource associated with newsletter
-