Page 1 of 1

send sms to multiple recipients

Posted: Sun Jul 05, 2015 2:34 pm
by Jeff Salter

I have an issue with sending sms to multiple recipients. I'm using twilio plugin. I've created the ability to send using template messages, but I can't find the code example to create a loop to send that message to multiple selected recipients. I need to send the same message to multiple recipients.


send sms to multiple recipients

Posted: Sun Jul 05, 2015 5:11 pm
by Evgene Karachevtsev

Hello Jeff,

Unfortunately plugins are outside the scope of our support, so you should this code online, for example here:
http://stackoverflow.com/questions/18...
http://stackoverflow.com/questions/18...
https://www.twilio.com/docs/api/rest/...


send sms to multiple recipients

Posted: Sun Jul 05, 2015 5:36 pm
by Jeff Salter

Sorry maybe I put the question wrong. I have my page built where I can input a message, then a select list where I can check the numbers I want to send. What I don't know is how to pull the values for each checked item (recipient number) in my list and then run the send message command with the message value and repeat for each checked number?


send sms to multiple recipients

Posted: Tue Jul 07, 2015 2:49 am
by Jeff Salter

I have a check list that has names with phone numbers to be selected.
I want to store three values from each line value when user clicks submit. Each line has firstName, lastName and phoneNumber.
I have created a model (ContactDetails) that has the firstname, lastname and number strings
I have created and Array Called ContactSendList
I have created a local storage value called recipients (type:ContactSendList)

Here is what I wrote and places as a Run JavaScript when user click submit button but can't seem to see if it is working:

var contactsmobilecheckboxgroup = Apperyio("contactsmobilecheckboxgroup").find(":checked");
var arr = [];
contactsmobilecheckboxgroup.each(function(){
arr.push($(arr).val());
});
localStorage.setItem("recipients", arr);


send sms to multiple recipients

Posted: Wed Jul 15, 2015 1:10 pm
by Alena Prykhodko

Hello Jeff,

This should be useful http://stackoverflow.com/questions/18...