You can request the SMSC to return a message disposition response to indicate the fate of your message. To request a delivery receipt, include a RegisteredDelivery field in the Data parameter of a SendGatewayMessage
function or the return variable of the CFC listener method. This field can have the following values:
Value | Meaning |
---|---|
0 |
(Default) Do not return delivery information. |
1 |
Return a receipt if the message is not delivered before the time-out. |
2 |
Return a receipt if the message is delivered or fails. |
Some providers also support intermediate delivery notifications. For more information, see your provider's documentation.
To use delivery notification, you must send your message using synchronous mode, so you get a message ID. Your incoming message routine must be able to handle the receipts as described in Handling incoming messages