Class Email

    • Field Detail

      • m_Subject

        protected String m_Subject
        the subject.
      • m_Body

        protected String m_Body
        the body.
      • m_Attachments

        protected File[] m_Attachments
        the attachments.
    • Constructor Detail

      • Email

        public Email​(EmailAddress from,
                     EmailAddress to,
                     String subject,
                     String body)
        Initializes the email.
        Parameters:
        from - the sender
        to - the recipient
        subject - the subject
        body - the content
      • Email

        public Email​(EmailAddress from,
                     EmailAddress to,
                     String subject,
                     String body,
                     File[] attachments)
        Initializes the email.
        Parameters:
        from - the sender
        to - the recipient
        subject - the subject
        body - the content
        attachments - the attachments
      • Email

        public Email​(EmailAddress from,
                     EmailAddress[] to,
                     String subject,
                     String body,
                     File[] attachments)
        Initializes the email.
        Parameters:
        from - the sender
        to - the recipients
        subject - the subject
        body - the content
        attachments - the attachments
      • Email

        public Email​(EmailAddress from,
                     EmailAddress[] to,
                     EmailAddress[] cc,
                     EmailAddress[] bcc,
                     String subject,
                     String body,
                     File[] attachments)
        Initializes the email.
        Parameters:
        from - the sender
        to - the recipients
        cc - the CC recipients
        bcc - the BCC recipients
        subject - the subject
        body - the content
        attachments - the attachments
    • Method Detail

      • getFrom

        public EmailAddress getFrom()
        Returns the sender.
        Returns:
        the sender
      • getTo

        public EmailAddress[] getTo()
        Returns the TO recipients.
        Returns:
        the recipients
      • getCC

        public EmailAddress[] getCC()
        Returns the CC recipients.
        Returns:
        the recipients
      • getBCC

        public EmailAddress[] getBCC()
        Returns the BCC recipients.
        Returns:
        the recipients
      • getAttachments

        public File[] getAttachments()
        Returns the attachments.
        Returns:
        the attachments
      • getSubject

        public String getSubject()
        Returns the subject.
        Returns:
        the subject
      • getBody

        public String getBody()
        Returns the body.
        Returns:
        the body
      • toString

        public String toString()
        Simple info string for debugging purposes.
        Overrides:
        toString in class Object
        Returns:
        the generated string
      • toPlainText

        public String toPlainText()