Package mireka.transmission.dsn
Class DsnMailCreator
- Object
-
- mireka.transmission.dsn.DsnMailCreator
-
@ThreadSafe public class DsnMailCreator extends ObjectDsnMailCreator constructs a DSN message. It does not collect any status information itself, its sole responsibility is to format the message based on the supplied data.
-
-
Constructor Summary
Constructors Constructor Description DsnMailCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mailcreate(Mail mail, java.util.List<RecipientProblemReport> recipientReports)Constructs a new DSN message.voidsetFromAddress(NameAddr fromAddress)Sets the address used in the From header of the DSN mail.voidsetReportingMtaName(String reportingMtaName)Sets the DNS/HELO name of this MTA.
-
-
-
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 reportedrecipientReports- 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.
-
-