Class DsnMailCreator

    • Constructor Detail

      • DsnMailCreator

        public DsnMailCreator()
    • Method Detail

      • create

        public Mail create​(Mail mail,
                           java.util.List<RecipientProblemReport> recipientReports)
        Constructs a new DSN message.
        Parameters:
        mail - the mail of which transmission status will be reported
        recipientReports - recipient specific information about the status
      • setReportingMtaName

        public void setReportingMtaName​(String reportingMtaName)
        Sets the DNS/HELO name of this MTA. It appears in the report.
      • setFromAddress

        public void setFromAddress​(NameAddr fromAddress)
        Sets the address used in the From header of the DSN mail.