Class Mail


  • public class Mail
    extends Object
    Represents an E-Mail to send. Bean-style accessors are available, as well as fluent setters.
    • Method Detail

      • getSubject

        public String getSubject()
      • setSubject

        public void setSubject​(String subject)
      • subject

        public Mail subject​(String mailSubject)
      • getBodyText

        public String getBodyText()
      • setBodyText

        public void setBodyText​(String bodyText)
      • bodyText

        public Mail bodyText​(String mailBodyText)
      • getBodyHtml

        public String getBodyHtml()
      • setBodyHtml

        public void setBodyHtml​(String bodyHtml)
      • bodyHtml

        public Mail bodyHtml​(String mailBodyHtml)
      • sender

        public Mail sender​(String mailFrom)
      • setReplyTo

        public void setReplyTo​(MailAddress replyTo)
      • replyTo

        public Mail replyTo​(String mailReplyTo)
      • setPriority

        public void setPriority​(MailPriority priority)
      • addRecipientTo

        public void addRecipientTo​(MailAddress address)
      • addRecipientCc

        public void addRecipientCc​(MailAddress address)
      • addRecipientBcc

        public void addRecipientBcc​(MailAddress address)
      • bcc

        public Mail bcc​(String... mailAddress)
      • getHeader

        public com.google.common.collect.Multimap<String,​String> getHeader()
      • addHeader

        public void addHeader​(String name,
                              String value)
      • hasHeaders

        public boolean hasHeaders()
      • getNumberRecipients

        public int getNumberRecipients()
      • hasRecipients

        @AssertTrue
        public @javax.validation.constraints.AssertTrue boolean hasRecipients()
      • addAttachment

        public void addAttachment​(Attachment attachment)
      • addAttachments

        public void addAttachments​(List<Attachment> listOfAttachments)
      • removeAttachment

        public void removeAttachment​(Attachment attachment)
      • removeAllAttachments

        public void removeAllAttachments()
      • hasAttachments

        public boolean hasAttachments()