Class SentMailData

  • All Implemented Interfaces:
    ISentMailData

    public final class SentMailData
    extends Object
    implements ISentMailData
    Default POJO implementation of ISentMailData.
    Since:
    8.0.4
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • SentMailData

        public SentMailData​(String subject,
                            List<String> to,
                            List<String> cc,
                            List<String> bcc)
        Creates a new POJO with the given data.
        Parameters:
        subject - The mail's subject.
        to - The list of TO recipients.
        cc - The list of CC recipients.
        bcc - The list of BCC recipients.
    • Method Detail

      • getBcc

        public List<String> getBcc()
        Description copied from interface: ISentMailData
        Gets the final resolved BCC address of the mail which was sent.
        Specified by:
        getBcc in interface ISentMailData
        Returns:
        The mail's subject.
      • getCc

        public List<String> getCc()
        Description copied from interface: ISentMailData
        Gets the final resolved CC address of the mail which was sent.
        Specified by:
        getCc in interface ISentMailData
        Returns:
        The mail's subject.
      • getSubject

        public String getSubject()
        Description copied from interface: ISentMailData
        Gets the final resolved subject of the mail which was sent.
        Specified by:
        getSubject in interface ISentMailData
        Returns:
        The mail's subject.
      • getTo

        public List<String> getTo()
        Description copied from interface: ISentMailData
        Gets the final resolved TO address of the mail which was sent.
        Specified by:
        getTo in interface ISentMailData
        Returns:
        The mail's subject.
      • ofMimeMessage

        public static ISentMailData ofMimeMessage​(javax.mail.internet.MimeMessage msg)
        Creates a a SentMailData POJO with the data from the given mail mime message.
        Parameters:
        msg - Mime message with the mail data.
        Returns:
        A new POJO with the data from the mime message.