SMS GATEWAY XML SPECIFICATION v1.0 | LAST UPDATED : 06 DECEMBER 2011
print

Generate XML

Below is XML code to send batch SMSs. In the example, 2 <SMS_SEND> attributes is used, therefore sending to 2 messages. Please limit your SMS sends to maximum of 200 messages.

Although it is possible to do large bulk sends, it is not recommended. Large XML files could take a while to submit to the server and this might lead to a timeout. Should an error occur during a large bulk send it also becomes harder to determine exactly which messages succeeded and which ones failed. For bulk sends, it is recommended that either each message is submitted on its own, or that the bulk send be broken up into submissions of 25 messages at a time. This will allow for quicker submission to the server and also makes it easy to resume sending should an error occur.

Code Sample

<XML>
    <SENDBATCH delivery_report="1" status_report="1" user="USERNAME" password="PASSWORD" extension="EXTENSION">
        <SMSLIST>
            <SMS_SEND to="MSISDN" uid="UNIQUE UID" reply="EMAIL:email@address.com" to_name="">MESSASGE TEXT</SMS_SEND>
            <SMS_SEND to="MSISDN" uid="UNIQUE UID" reply="EMAIL:email@address.com" to_name="">MESSASGE TEXT</SMS_SEND>
        </SMSLIST>
    </SENDBATCH>
</XML>

            

Connect to Gateway

HTTP
Post the XML to http://sg1.channelmobile.co.za/
Request method: POST
Form-request data name: xmldata

Email
XML can also be sent in the body or as an attachment of an email called "sms.xml" and the attachment content-type should be "text/xml"
Email address: sms@sg.channelmobile.co.za