@ThreadSafe
public class DsnMailCreator
extends Object
Constructor and Description |
---|
DsnMailCreator() |
Modifier and Type | Method and Description |
---|---|
Mail |
create(Mail mail,
java.util.List<RecipientProblemReport> recipientReports)
Constructs a new DSN message.
|
void |
setFromAddress(NameAddr fromAddress)
Sets the address used in the From header of the DSN mail.
|
void |
setReportingMtaName(String reportingMtaName)
Sets the DNS/HELO name of this MTA.
|
public Mail create(Mail mail, java.util.List<RecipientProblemReport> recipientReports)
mail
- the mail of which transmission status will be reportedrecipientReports
- recipient specific information about the statuspublic void setReportingMtaName(String reportingMtaName)
public void setFromAddress(NameAddr fromAddress)