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
#1
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
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: