User Guide

Table Of Contents
1080 Chapter 44: Using the SMS Event Gateway
SMS Text Message: <cfinput type="Text" name="SMSMessage"
value="Sample text Message" required="No" maxlength="160">
<p><input type = "submit" name = "submit" value = "Submit">
<input type = "hidden" name = "oncethrough" value = "Yes">
</cfform>
Message disposition notification
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:
Some providers also support intermediate delivery notifications. For more information, see your
providers 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” on page 1073
Validity period
You can change the length of time that the SMSC keeps a message and tries to deliver it. (Often
the default value is 72 hours.) For a message sent to an emergency worker, for example, you might
want to specify a very short validity period (such as 15 minutes). To change this value, include a
validityPeriod field in the Data parameter of a
SendGatewayMessage function or the return
variable of the CFC listener method. To specify a time period, use the following pattern:
YYMMDDhhmmsst00R. In this pattern, t indicates tenths of seconds, and 00R specifies that this
is a relative time period, not a date-time value. The time format 00001063000000R, for example,
specifies a validity period of 0 years, 0 months, 1 day, 6 hours, 30 minutes.
ColdFusion MX SMS development tools
ColdFusion MX provides the following tools for developing SMS applications:
SMS test server
SMS client simulator
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.