(23.07.2020, 16:19)Erwin van der Zwart Wrote: Hi,
Try:
to = {"recipient1@mail.com","recipient2@mail.com","recipient3@mail.com"}
BR,
Erwin
I have tested but not work , for one dest work
I use this for send mail
-- INDICAZIONI COMUNI
-- get current data as table
now = os.date('*t')
TS=' del '..now.day..'/'..now.month..'/'..now.year..' alle '..now.hour..':'..now.min..':'..now.sec
Dest ='claudio@ciemme.com'
value_01 =grp.getvalue('32/1/58')
if (first_loop == 1) then
if (value_01 ~= last_01) and (value_01 == true) then
subject = 'ON ALM'
message = 'ON MESSAGE' .. TS
mail(Dest, subject, message)
alert(message)
elseif (value_01 ~= last_01) and (value_01 == false) then
subject = 'OFF ALM'
message = 'OFF MESSAGE' .. TS
mail(Dest, subject, message)
end
end
last_01=value_01
first_loop = 1
tank's in advantage