Class EmailMessage


  • public abstract class EmailMessage
    extends java.lang.Object
    Value class representing the content and metadata of an email.
    • Constructor Detail

      • EmailMessage

        public EmailMessage()
    • Method Detail

      • subject

        public abstract java.lang.String subject()
      • body

        public abstract java.lang.String body()
      • recipients

        public abstract com.google.common.collect.ImmutableSet<javax.mail.internet.InternetAddress> recipients()
      • from

        public abstract javax.mail.internet.InternetAddress from()
      • bccs

        public abstract com.google.common.collect.ImmutableSet<javax.mail.internet.InternetAddress> bccs()
      • contentType

        public abstract java.util.Optional<com.google.common.net.MediaType> contentType()
      • create

        public static EmailMessage create​(java.lang.String subject,
                                          java.lang.String body,
                                          javax.mail.internet.InternetAddress recipient,
                                          javax.mail.internet.InternetAddress from)