Not sure when it stopped working…but getting these errors now:
17:56:43.234 [ERROR] [nhab.action.mail.internal.Mail:159 ] - Could not send e-mail to ‘myemail@gmail.com’.
org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:587
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242) ~[commons-email-1.2.jar:1.2]
at org.apache.commons.mail.Email.send(Email.java:1267) ~[commons-email-1.2.jar:1.2]
at org.openhab.action.mail.internal.Mail.sendMail(Mail.java:155) [bundlefile:na]
at org.openhab.action.mail.internal.Mail.sendMail(Mail.java:90) [bundlefile:na]
at org.openhab.action.mail.internal.Mail.sendMail(Mail.java:65) [bundlefile:na]
not with GMail, but I’ve seen the same errors for my mail provider (web.de). Happens every couple of weeks. My guess is a timing issue; probably the provider takes too long to answer the login request.
HTH,
-OLI
I last received an email from the sendMail action about ten hours ago (expected). Check your network connectivity and credentials for sending email to smtp.gmail.com.
caused by: javax.mail.SendFailedException: Send failure (javax.mail.AuthenticationFailedException: null)
at javax.mail.Transport.send(Transport.java:163) ~[javax.mail_1.4.0.v201005080615.jar:na]
at javax.mail.Transport.send(Transport.java:48) ~[javax.mail_1.4.0.v201005080615.jar:na]
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1232) ~[commons-email-1.2.jar:1.2]
… 31 common frames omitted
Caused by: javax.mail.AuthenticationFailedException: null
at javax.mail.Service.connect(Service.java:271) ~[javax.mail_1.4.0.v201005080615.jar:na]
at javax.mail.Service.connect(Service.java:85) ~[javax.mail_1.4.0.v201005080615.jar:na]
at javax.mail.Service.connect(Service.java:70) ~[javax.mail_1.4.0.v201005080615.jar:na]
at javax.mail.Transport.send(Transport.java:94) ~[javax.mail_1.4.0.v201005080615.jar:na]
… 33 common frames omitted
You should not need to change it, I’m not using it personally right now, but I did configure it correctly in the past. Check if your configuration parameters are correctly set, for example:
Could something be broken in Openhab?
Just tried using a yahoo account and the same problem.
20:48:21.898 [ERROR] [nhab.action.mail.internal.Mail:159 ] - Could not send e-mail to ‘myemail@gmail.com’.
org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.mail.yahoo.com:587
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242) ~[commons-email-1.2.jar:1.2]
at org.apache.commons.mail.Email.send(Email.java:1267) ~[commons-email-1.2.jar:1.2]
at org.openhab.action.mail.internal.Mail.sendMail(Mail.java:155) [bundlefile:na]
at org.openhab.action.mail.internal.Mail.sendMail(Mail.java:90) [bundlefile:na]
at org.openhab.action.mail.internal.Mail.sendMail(Mail.java:65) [bundlefile:na]
and then this appears in the opehab.log
Caused by: javax.mail.SendFailedException: Send failure (javax.mail.AuthenticationFailedException: null)
at javax.mail.Transport.send(Transport.java:163) ~[javax.mail_1.4.0.v201005080615.jar:na]
at javax.mail.Transport.send(Transport.java:48) ~[javax.mail_1.4.0.v201005080615.jar:na]
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1232) ~[commons-email-1.2.jar:1.2]
… 30 common frames omitted
Caused by: javax.mail.AuthenticationFailedException: null
at javax.mail.Service.connect(Service.java:271) ~[javax.mail_1.4.0.v201005080615.jar:na]
at javax.mail.Service.connect(Service.java:85) ~[javax.mail_1.4.0.v201005080615.jar:na]
at javax.mail.Service.connect(Service.java:70) ~[javax.mail_1.4.0.v201005080615.jar:na]
at javax.mail.Transport.send(Transport.java:94) ~[javax.mail_1.4.0.v201005080615.jar:na]
… 32 common frames omitted