Class CampaignEmailMessage

    • Method Detail

      • body

        public final String body()

        The body of the email for recipients whose email clients don't render HTML content.

        Returns:
        The body of the email for recipients whose email clients don't render HTML content.
      • fromAddress

        public final String fromAddress()

        The verified email address to send the email from. The default address is the FromAddress specified for the email channel for the application.

        Returns:
        The verified email address to send the email from. The default address is the FromAddress specified for the email channel for the application.
      • htmlBody

        public final String htmlBody()

        The body of the email, in HTML format, for recipients whose email clients render HTML content.

        Returns:
        The body of the email, in HTML format, for recipients whose email clients render HTML content.
      • title

        public final String title()

        The subject line, or title, of the email.

        Returns:
        The subject line, or title, of the email.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)