public interface DSNCreator
| Modifier and Type | Method and Description |
|---|---|
javax.mail.internet.MimeMessage |
createDSNFailure(org.nhindirect.common.tx.model.Tx tx,
org.nhindirect.stagent.NHINDAddressCollection failedRecipeints)
Deprecated.
As of 2.0.1. This method does not correctly determine the domain of the postmaster for incoming messages.
Use
createDSNFailure(Tx, NHINDAddressCollection, boolean). |
Collection<javax.mail.internet.MimeMessage> |
createDSNFailure(org.nhindirect.common.tx.model.Tx tx,
org.nhindirect.stagent.NHINDAddressCollection failedRecipeints,
boolean useSenderDomainForPostmaster)
Creates a collection of DSN messages using message information from a Tx object a list of failed recipients.
|
javax.mail.internet.MimeMessage createDSNFailure(org.nhindirect.common.tx.model.Tx tx,
org.nhindirect.stagent.NHINDAddressCollection failedRecipeints)
throws javax.mail.MessagingException
createDSNFailure(Tx, NHINDAddressCollection, boolean).tx - Tx object containing information on the message that failed to be send or delivered.failedRecipeints - List of intended recipients that did not receive the original message.javax.mail.MessagingExceptionCollection<javax.mail.internet.MimeMessage> createDSNFailure(org.nhindirect.common.tx.model.Tx tx, org.nhindirect.stagent.NHINDAddressCollection failedRecipeints, boolean useSenderDomainForPostmaster) throws javax.mail.MessagingException
tx - Tx object containing information on the message that failed to be send or delivered.failedRecipeints - List of intended recipients that did not receive the original message.useSenderDomainForPostmaster - Indicates if the original sender or the recipients should be used to determine the postmaster domain.
Generally for rejected outgoing messages, the sender's domain is used, and for incoming messages the recipients' domains are used.javax.mail.MessagingExceptionCopyright © 2010–2021 NHIN Direct. All rights reserved.