User Tools

Site Tools

SubmitMulti specifics

The SubmitMulti operation is used to submit an SMPP message for delivery to multiple recipients or to one or more Distribution Lists.

Recipients can be specified with multiple invocation of method To

                 .Text("Test Test")

this can be done from phone numbers collection

 var pduBuilder = SMS.ForSubmitMulti()
                 .Text("Test Test")
 foreach (string phoneNumber in phoneNumbers)

another possibility is to create DestinationAddress list

List<DestinationAddress> destList = new List<DestinationAddress>();
destList.Add(new DestinationAddress("11111111111", 0, 1));
destList.Add(new DestinationAddress("22222222222", 0, 1));
IList<SubmitMultiResp> submitResponses = client.Submit(SMS.ForSubmitMulti()
   .Text("Test Test")

SubmitMultiResp can be received as return value in synchronous method client.Submit() and with event evSubmitMultiCompleted. When response received it means SMPP server stored message for further delivery to recipient.

SubmitMulti message for destination address is accepted by SMPP server only when you receive ESME_ROK in all responses in IList<SubmitMultiResp> and destination address does not exist in UnsuccessAddresses of response.

Page Tools