29.04.2021, 12:15
Hi,
I'm trying to trigger sending mail by value =1. would that be correct script?
-- make sure mail settings are set in user function library before using this function
subject = 'THERE IS ALARM'
message = 'THERE IS AN ALARM IN THE SYSTEM- PLEASE LOG IN TO VISUALISATION AND CHECK ALARM PAGE'
mail('test@mail.com', subject, message)
--trigger function
value = event.getvalue()
if (value ==1) then
send (mail)
end
I'm trying to trigger sending mail by value =1. would that be correct script?
-- make sure mail settings are set in user function library before using this function
subject = 'THERE IS ALARM'
message = 'THERE IS AN ALARM IN THE SYSTEM- PLEASE LOG IN TO VISUALISATION AND CHECK ALARM PAGE'
mail('test@mail.com', subject, message)
--trigger function
value = event.getvalue()
if (value ==1) then
send (mail)
end