Class MailRequest


  • public class MailRequest
    extends Object
    Mail message model object representing mail content with sender and recipient information. Body can be text, binary or multipart nature.
    Since:
    1.4
    Author:
    Christoph Deppisch
    • Constructor Detail

      • MailRequest

        public MailRequest()
    • Method Detail

      • getFrom

        public String getFrom()
        Gets the sender mail address.
        Returns:
      • setFrom

        public void setFrom​(String from)
        Sets the sender mail address.
        Parameters:
        from -
      • getTo

        public String getTo()
        Gets the mail recipients.
        Returns:
      • setTo

        public void setTo​(String to)
        Sets the mail recipients.
        Parameters:
        to -
      • getCc

        public String getCc()
        Gets the copy to recipients.
        Returns:
      • setCc

        public void setCc​(String cc)
        Sets the copy to recipients.
        Parameters:
        cc -
      • getBcc

        public String getBcc()
        Gets the blind copy recipient list.
        Returns:
      • setBcc

        public void setBcc​(String bcc)
        Sets the blind copy recipient list.
        Parameters:
        bcc -
      • getReplyTo

        public String getReplyTo()
        Gets the reply to mail address.
        Returns:
      • setReplyTo

        public void setReplyTo​(String replyTo)
        Sets the reply to mail address.
        Parameters:
        replyTo -
      • getSubject

        public String getSubject()
        Gets the mail subject.
        Returns:
      • setSubject

        public void setSubject​(String subject)
        Sets the mail subject.
        Parameters:
        subject -
      • getBody

        public BodyPart getBody()
        Gets the mail body content.
        Returns:
      • setBody

        public void setBody​(BodyPart body)
        Sets the mail body content.
        Parameters:
        body -