Interface Email

All Superinterfaces:
BaseType, NamedType

public interface Email extends NamedType
Defines interface of email/newsletter to be sent to emailprovider. The methods for name and identifier are inherited from NamedType
  • Field Details

    • EMAIL_CLASSIFICATION

      static final String 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

      void setSubject(String subject)
      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

      void setContent(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

      String getFromAddress()
      Get the email address for sender.
      Returns:
      the sender's email address.
    • setFromAddress

      void setFromAddress(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