VasilijHCN wrote: How to create email alert @ send command to relay node ?
(i.e. if temperature hit 31*C then notify by email, and send off command to relay node)
Email alter is supported in beta0_7b1 only. Example (settings for gmail):
-settings - call in Setup, correct email and password-call only once
EmailHelper.SetupSmtp("This email address is being protected from spambots. You need JavaScript enabled to view it.", "password", "smtp.gmail.com", 587, true);
-send email:
EmailHelper.SendEmail("This email address is being protected from spambots. You need JavaScript enabled to view it.", "This email address is being protected from spambots. You need JavaScript enabled to view it.", "subject test", "test message");
I don't get it to send any email. Have set it up with my gmail account so there should not so many possibilites to do wrong.
Does this work for others?
Is there a way to debug the Emailhelper?
jilldris wrote: I don't get it to send any email. Have set it up with my gmail account so there should not so many possibilites to do wrong.
Does this work for others?
Is there a way to debug the Emailhelper?
I've just tested. It works on windows machine, but it doesn't work on RPi. I think, that RPi firewall is blocking 587 port. I see no reason in EasyIoT server, beacuse Win and RPi code for email helper is identical.
I had trouble with gmail. I got an email from google saying that they blocked unauthoized signin. It gave me option to lower security but I choose to set it up with an outlook.com address.
tonyn79 wrote: I had trouble with gmail. I got an email from google saying that they blocked unauthoized signin. It gave me option to lower security but I choose to set it up with an outlook.com address.
On which platform? Win or RPi? Google sometimes limits number of send emails per minute. Also be careful to use the same email account in SetupSmtp and sender in SendEmail.