SMS YANU documentation home

Sending messages

How to fill in submit_sm for SMS YANU.

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 265990000000.
esm_class0, or 0x40 when the message has a UDH (long messages).
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.

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

  • SMS YANU does not filter sender IDs on SMPP binds. The networks in each country may block or change a sender ID they do not know.
  • Some countries need sender IDs registered with the networks first. Ask your account manager before you send a new sender ID.
  • ESME_RINVSRCADR means the sender ID was refused further along. Use a registered one.

To be confirmed

Which countries need sender ID registration, and how long it takes, depends on each country's networks.

On this page