BounceResult

Inheritance: java.lang.Object

public class BounceResult

Represents result of the message examination as a bounce message.

Constructors

Constructor Description
BounceResult()

Methods

Method Description
isBounced() True if email is a delivery failure or deliver delay report.
getAction() Indicates the action performed as a result of attempt to deliver the message.
getReason() For a “failed” or “delayed” recipient, contains the actual diagnostic code issued by the mail transport.
getRecipient() Indicates the original recipient address as specified by the sender of the message for which the delivery failure report was issued.
getStatus() Contains a transport-independent status code which indicates the delivery status of the message to that recipient.
getOriginalMessage() Contains the original message.

BounceResult()

public BounceResult()

isBounced()

public final boolean isBounced()

True if email is a delivery failure or deliver delay report.

Returns: boolean

getAction()

public final int getAction()

Indicates the action performed as a result of attempt to deliver the message.

Returns: int

getReason()

public final String getReason()

For a “failed” or “delayed” recipient, contains the actual diagnostic code issued by the mail transport.

Returns: java.lang.String

getRecipient()

public final String getRecipient()

Indicates the original recipient address as specified by the sender of the message for which the delivery failure report was issued.

Returns: java.lang.String

getStatus()

public final String getStatus()

Contains a transport-independent status code which indicates the delivery status of the message to that recipient.

Returns: java.lang.String

getOriginalMessage()

public final MailMessage getOriginalMessage()

Contains the original message.

Returns: MailMessage