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 e-mail
#5
For event value you can use an event script:
Code:
value = event.getvalue()

subject = 'E-mail test'
message = 'Event value is ' .. tostring(value)
mail('user@example.com', subject, message)

For storage value you need a scheduled script. But, if you want to send a value on each storage value change you should use a virtual object instead because you cannot attach an event script to storage changes.
Code:
value = storage.get('myvalue')

subject = 'E-mail test'
message = 'Storage value is ' .. tostring(value)
mail('user@example.com', subject, message)
Reply


Messages In This Thread
Send e-mail - by Daponte - 25.11.2017, 18:06
RE: Send e-mail - by admin - 27.11.2017, 10:35
RE: Send e-mail - by Daponte - 27.11.2017, 10:42
RE: Send e-mail - by d.r soutras - 10.10.2021, 18:26
RE: Send e-mail - by Daniel - 11.10.2021, 09:37
RE: Send e-mail - by d.r soutras - 11.10.2021, 15:52
RE: Send e-mail - by Erwin van der Zwart - 26.11.2017, 00:45
RE: Send e-mail - by Daponte - 27.11.2017, 10:15
Send e-mail - by Daponte - 27.11.2017, 10:29

Forum Jump: