Submit SM (send_sms)

How to construct and submit short messages via the submit_sm PDU.

Required Fields
  • source_addr: Sender ID (alphanumeric or numeric)
  • destination_addr: Recipient MSISDN in international format
  • short_message / message_payload: Message body (watch encoding and length)
  • data_coding: 0 for GSM7, 8 for UCS2 (Unicode)
  • registered_delivery: 1 to request a DLR
Example submit_sm (PDU)
text
submit_sm
source_addr_ton: 5
source_addr_npi: 0
source_addr: MyBrand
destination_addr_ton: 1
destination_addr_npi: 1
destination_addr: 233244123456
registered_delivery: 1
data_coding: 0
short_message: Hello from Sendexa via SMPP
Handling submit_sm_resp

On success, the SMSC returns a submit_sm_resp containing a message_id which you should persist for later correlation with DLRs.

text
submit_sm_resp
message_id: 234982348