This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

SMS - Twilio
#3
(02.08.2022, 07:47)admin Wrote: You have to make a separate request for each recipient:
Code:
from_nr = '+13253264263'
to_nrs = { 'Number1', 'Number2', 'Number3' }
id_nr = '***' --
token_nr = '***' --

for _, to_nr in ipairs(to_nrs) do
  sms(id_nr, token_nr, from_nr, to_nr, 'Alarm HCWC 009 changed to Alarm OFF')
end

Hi,

Thanks for the reply, 
It sends only for the first number
Reply


Messages In This Thread
SMS - Twilio - by Fahd - 02.08.2022, 06:24
RE: SMS - Twilio - by admin - 02.08.2022, 07:47
RE: SMS - Twilio - by Fahd - 02.08.2022, 08:23
RE: SMS - Twilio - by admin - 02.08.2022, 08:41
RE: SMS - Twilio - by Fahd - 02.08.2022, 09:53
RE: SMS - Twilio - by admin - 02.08.2022, 09:57
RE: SMS - Twilio - by Fahd - 02.08.2022, 10:18
RE: SMS - Twilio - by admin - 02.08.2022, 10:37
RE: SMS - Twilio - by Fahd - 02.08.2022, 10:54
RE: SMS - Twilio - by admin - 02.08.2022, 11:38
RE: SMS - Twilio - by Fahd - 02.08.2022, 11:46
RE: SMS - Twilio - by admin - 02.08.2022, 12:05
RE: SMS - Twilio - by Fahd - 02.08.2022, 12:23

Forum Jump: