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_smsource_addr_ton: 5source_addr_npi: 0source_addr: MyBranddestination_addr_ton: 1destination_addr_npi: 1destination_addr: 233244123456registered_delivery: 1data_coding: 0short_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_respmessage_id: 234982348