29.04.2021, 12:38
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