Send messages to one or more recipients.
You can post up to 30 000 messages in a batch.
But note that the deduplication-id is set per submission, so it is recommended that you use a smaller number, like 4000 per submission in order to make resubmissions on network failures more practical.
Repliability
When a sent message is repliable, the BulkSMS system can process an SMS response sent by your recipient.
The message sent by your customer is called a mobile originating (MO) message and would be available under RECEIVED messages.
You can obtain a list of MOs using the .
In addition you can also get a list of the MOs that are associated with a specific sent message (see the ).
If you use a specific sender id in the from property of the send message, the message will not be repliable.
If you want a message to be repliable, you need to specify REPLIABLE in the from.type property.
If you do not set the from property, your account settings are considered to determine whether or not the message is repliable.
If the default repliable setting on your account is yes then the message will be repliable.
If this setting is no, the message will not be repliable.
Body templates
When sending a message you can use template fields to customise the message text.
Field based templates allow you to create a message with place-holders for custom fields. Fields are identified by a zero based index; the first field is F0, the second is F1 and so on.
For example, let's say you want to send a daily SMS message to all your clients that tell them what their current balance is. The body of the message could look something like this
In this message, the first field, F0, is the name of the customer and he second field F1 is the balance for that customer. The # used to specify the maximum length of the field. Note that the maximum length allowed for the value includes the space taken by the braces, template name and hash symbol. For example, the value {F0#} specifies a maximum length of 5. If the data is longer than this length, the data will be truncated when the message body is constructed.
The data fields are provided in the property named fields in the to element. Here is a complete example of how this might look
If you are sending to contacts (or to groups) in your phonebook, you can use the Phonebook based templates. These are similar to the templates described above, but they have specific names. The template for the contact's first name is identified by fn and the template for the contact's surname is identified by sn. Below in an example that will work if the numbers are registered in your phonebook.