Delay sending sms messages


Hey All,

Just wanting some advice on how best to send a bunch of sms messages with a small delay between each message.

I have an array of numbers to send to, I’m just not sure how to structure my page code so that it works it way through the array, with say a 2 second delay between each item, while still being able to access root items in the class.

I figured i might be able to do it with setinterval or settimeout. But I’m not having much luck getting it working…


Managed to figure it out

I wasn’t clearing the setInterval correctly which is why I was having trouble.