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.

Email Multi destination address
#3
(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
Reply


Messages In This Thread
Email Multi destination address - by Frank68 - 23.07.2020, 14:36
RE: Email Multi destination address - by Frank68 - 24.07.2020, 15:01

Forum Jump: