29.04.2021, 12:35
Hi,
I've set as advised and made sure the object in of the boolean type, but no e-mail is being sent.
The whole trigger even looks like this:
-- 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('mail to which e send', subject, message)
--trigger function
value = event.getvalue()
if value then
send (mail)
end
I've set as advised and made sure the object in of the boolean type, but no e-mail is being sent.
The whole trigger even looks like this:
-- 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('mail to which e send', subject, message)
--trigger function
value = event.getvalue()
if value then
send (mail)
end