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.

e-mail triggering
#4
Change to variable as needed. If it does not work then check what you get in Logs tab.

Code:
to = 'user@example.com'
subject = 'THERE IS ALARM'
message = 'THERE IS AN ALARM IN THE SYSTEM- PLEASE LOG IN TO VISUALISATION AND CHECK ALARM PAGE'

value = event.getvalue()
if value then
  res, err = mail(to, subject, message)
  log(res, err)
end
Reply


Messages In This Thread
e-mail triggering - by RafalBor - 29.04.2021, 12:15
RE: e-mail triggering - by admin - 29.04.2021, 12:16
RE: e-mail triggering - by RafalBor - 29.04.2021, 12:35
RE: e-mail triggering - by admin - 29.04.2021, 12:38
RE: e-mail triggering - by RafalBor - 29.04.2021, 12:42
RE: e-mail triggering - by Daniel - 29.04.2021, 12:46
RE: e-mail triggering - by RafalBor - 29.04.2021, 12:49
RE: e-mail triggering - by admin - 29.04.2021, 12:52

Forum Jump: