Skip to content

SendSMS

Send one or more SMS with your mobile account. The costs will be charged from the mobile account, not from your real account. If the input provided are valid, it should return a response with the code “200” indicating success. This indicates that the SMS was successfully submitted to the SMS gateway, meaning the phone number is valid, the gateway is responding and the connection is fine. In the response, the status can be one of two values - “successful” or “ failed”. “Successful” indicates we received an messageid from the 3th party provider. “Failed” could be a number of reasons beyond our control. Another command, QuerySMSList can be used to find out what has happened with the SMS, whether if it got delivered, expired, the phone number was not reachable or if the carrier has broken down.

The following parameters are standard parameters for this command.

Command
command = SendSMS
accountid =(TEXT)
password =(TEXT)
mobilenr# =(TEXT)
sourceid =(TEXT)
text =(TEXT)
encoding =(PLAIN|PLAINFLASH|UNICODE|UNICODEFLASH)
premium =(0|1)
Response
code =(INT)
description =(TEXT)
property[smsid][0] =(INT)
accountidID of the account to be used
passwordPassword from the mobileaccount to be used, not your real account password!
mobilenr#Number of the cellphone to send the message to (up to 256 recipients, mobilenr0 - mobilenr255)
sourceidNumber of the cellphone being the sender
textText of the SMS to be send
encodingEncoding of the message (defaulting to “PLAIN”, optional):
PLAIN: Plain Text Message (GSM)
PLAINFLASH: Plain Text Message (GSM), appearing directly on display
UNICODE: Text Message using unicode characters
UNICODEFLASH: Text Message using unicode, appearing directly on display
premiumStandard (0) or Premium (1) SMS
smsidUnique ID of this transaction