Interface EmailTemplate<Type extends Email>

Type Parameters:
Type - Type of email
All Superinterfaces:
MessageTemplate<Type>

public interface EmailTemplate<Type extends Email> extends MessageTemplate<Type>
Define a Template that can be used to build Emails.
Since:
5.4
See Also:
  • Method Details

    • setText

      void setText(String text)
      Parameters:
      text - to set as body of this message
    • getText

      String getText()
      Returns:
      message body set on template
    • setSubject

      void setSubject(String subject)
      Parameters:
      subject - to be used for the email
    • getSubject

      String getSubject()
      Returns:
      the subject set to this template
    • setFrom

      void setFrom(InternetAddress from) throws AddressException
      Parameters:
      from - and Address to be used as from
      Throws:
      AddressException - in case the address is in invalid format
    • getFrom

      InternetAddress getFrom()
      Returns:
      the address set
    • setCharSet

      void setCharSet(Charset charSet)
      Parameters:
      charSet - to use for sending
    • getCharSet

      Charset getCharSet()
      Returns:
      charSet set