25.11.2017, 18:06 
		
	
	
		Hello,
I needed to send an email when an event with a group address occurs. Does anyone have an example?
	
	
	
I needed to send an email when an event with a group address occurs. Does anyone have an example?
| 
				
				 
					Send e-mail
				 
			 | 
		
| 
	 
		
		
		25.11.2017, 18:06 
		
	 
	
		Hello, 
	
	
	
I needed to send an email when an event with a group address occurs. Does anyone have an example? 
		
		
		26.11.2017, 00:45 
		
	 
	
		Hi, 
	
	
	
Just use the build in mail function and trigger it as event based script: Code: -- make sure mail settings are set in common functions library before using this functionErwin 
		
		
		27.11.2017, 10:15 
		
	 
	
		Thanks
	 
	
	
	
		
		
		27.11.2017, 10:29 
		
	 
	
		Hello, 
	
	
	
I need to send a value from storage by email, someone has an example? 
		
		
		27.11.2017, 10:35 
		
	 
	
		For event value you can use an event script: 
	
	
	
Code: value = event.getvalue()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')
		
		
		27.11.2017, 10:42 
		
	 
	
		Thank you very much
	 
	
	
	
		
		
		10.10.2021, 18:26 
(This post was last modified: 10.10.2021, 20:02 by d.r soutras.)
		
	 
	
		Hello guys! 
	
	
	
A little bit of help here.. I have cycling send from a GA that comes from a generator. Can we adjust the code to send the email only if the GA changes it’s state. So an email with subject ‘Generator On’ will be sent when the GA is 1 and an email with subject ‘Generator Off’ will be sent when the GA is 0. Thank you in advance!! 
		
		
		11.10.2021, 09:37 
		
	 
	
		Something like that would do, event script 
	
	
Code: value = event.getvalue()
------------------------------ 
	
Ctrl+F5 
		
		
		11.10.2021, 15:52 
		
	 
	
		As always… your script works like a charm!!!! 
	
	
	
Thank you very much!!  | 
| 
				
	 
					« Next Oldest | Next Newest »
				 
			 |