NonDeliveryOption Property
Indicates what to do with the package in case it is undeliverable.
Syntax
public int getNonDeliveryOption(); public void setNonDeliveryOption(int nonDeliveryOption);
Enumerated values: public final static int ndoReturn = 0; public final static int ndoRedirect = 1; public final static int ndoAbandon = 2;
Remarks
In case the package is undeliverable, the package may be returned, redirected, or abandoned. NonDeliveryOption should be set to ndoReturn in order for the package to be returned to the sender's address.
However, if NonDeliveryOption is set to ndoRedirect, the package will be redirected to the address specified in the following configuration settings:
AltReturnAddress1, AltReturnAddress2, AltReturnAddress3, AltReturnAddress4, AltReturnAddress5, AltReturnAddress6, AltReturnCountry.
This property is not applicable for International First Class mail, and will be ignored for International Priority and Express mail when the PackagingType indicates a Flat Rate envelope is being used.
Default Value
0