hello, I am struggling to make mail notification on my HG, but I did not succeeded for the moment. I follow this topic "
http://www.homegenie.it/forum/index.php?topic=223.0", but it is not working for me.
I have HG r421 on Ubuntu server v14.
I setup my Email Account with Gmail or Yahoo.fr account but did not receive any mail
1. E-Mail address
<email>@gmail.com
2. SMTP Mail Server address
smtp.gmail.com
3. SMTP username (optional)
<email>@gmail.com
4. SMTP password (optional)
<account password>
5. SMTP Mail Server port
587
6. SMTP Mail Server use SSL (TRUE or FALSE)
TRUE
For my test, I create a C# program with below in program code
// CSharp Automation Program : send an email to test the mail settings
var subject = "test email";
var messagetext = "HG Test Email";
var recipients = "########@gmail.com";
Net.SendMessage( recipients, subject, messagetext );
Here is my trigger code:
if (Modules.InDomain("HomeAutomation.ZWave").WithAddress("5").IsOn)
{
return true;
}
else
{
return false;
}
When I switch on my "Zwave 5" light, I don't receive email.
So I installed an SMTP server on another computer, activated SMTP log on this server. Then send sucessfully an email by telnet. The SMTP session is logged in the SMTP server log.
I changed my Email account to use my lcoal SMTP server.
Email.Sender = "[email protected]"
Email.SmtpPassword = "password"
Email.SmtpPort = "25"
Email.SmtpServer = "192.168.77.82"
Email.SmtpUserName = "user1"
Email.SmtpUseSsl = "FALSE"
I changed my C# program with below in program code
// CSharp Automation Program : send an email to test the mail settings
var subject = "test email";
var messagetext = "HG Test Email";
var recipients = "[email protected]";
Net.SendMessage( recipients, subject, messagetext );
Now when I switch on my "Zwave 5" light, nothing is logged in the SMTP log. So this means that HG does not try to connect to my SMTP server 192.168.77.82.
I also added a module to my Zwave group so as there is a button which activate my program. When I click on it, it should send the email. But this also does not make my HG connect to my SMTP server.
Can someone help please ? Did I miss something in my HG settings ?