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.

Send a Email when a New alert occurs
#2
You can create a custom function and place it into Common functions. Then this function can be used in all script.
Code:
function mailalert(subject, message)
  mail({ ... }, subject, message)
  alert(message)
end

Event script:
Code:
temperature = event.getvalue()
subject = 'Vestis Gerby Alarm'
message = 'Vestis Gerby Alarm ' .. temperature
mailalert(subject, message)
Reply


Messages In This Thread
RE: Send a Email when a New alert occurs - by admin - 28.12.2021, 08:33

Forum Jump: