JT Noble SMS documentation home

Sending messages

How to fill in submit_sm for JT Noble SMS.

submit_sm fields

FieldWhat to send
source_addr_ton, source_addr_npiAlphanumeric sender: 5 and 0. Number sender: 1 and 1.
source_addrYour sender ID, up to 11 letters and digits, or a number. It must be approved for the country.
dest_addr_ton, dest_addr_npi1 and 1 (international, E.164).
destination_addrFull international number without +, for example 2348030000000.
esm_class0, or 0x40 when the message has a UDH (long messages). See Encoding.
registered_delivery1 to get a delivery receipt.
data_coding0 for GSM 7-bit, 8 for UCS2. See Encoding.
short_messageThe text, or one part of it. Up to 160 bytes (140 for UCS2).

The reply

Every submit_sm gets a submit_sm_resp.

  • command_status = 0 means we accepted the message. The message_id in the reply is the id you will see in the delivery receipt.
  • Any other command_status means the message was refused and not charged. See Errors.

Sender IDs

  • The networks in each country may block or change a sender ID they do not know. A sender rule set by JT Noble SMS on your bind can also replace or refuse a sender.
  • Some countries need sender IDs registered with the networks first. Ask your account manager before you send a new sender ID.
  • A sender refused by a rule answers 0x00000045 ESME_RSUBMITFAIL. Use a registered one.
  • Which countries need registration, and how long it takes, depends on each country's networks.

On this page