Gmail broken?

Anyone else experiencing issues with Gmail?

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]

G’day,

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.

mm… connectivity appears fine

would these errors be related?

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

I did upgrade Oracle Java to jdk 1.8.0_101 today could this be the problem?

Hi @aussie!

I think that you need to allow “less secure” apps in your gmail account to use the sendMail action. Here you have a link that explains how to do it:

https://support.google.com/accounts/answer/6010255?hl=en

Give Gmail a couple of hours to apply the changes before trying it again. I hope this solves the problem!

thanks for the responses but still no luck…

I did have this setup when I originally got gmail working and it is still set to allow less secure apps.

From the logs it doesn’t look like it’s even getting out to the email server… I don’t see any rejects etc…

I could try setting up another email provider? Any recommendations?

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:

The SMTP server hostname, e.g. “smtp.gmail.com
mail:hostname=smtp.gmail.com

the SMTP port to use (optional, defaults to 25 (resp. 587 for TLS))
mail:port=587

the username and password if the SMTP server requires authentication
mail:username=blablabla@gmail.com
mail:password=yourpassword

The email address to use for sending mails
mail:from=blablabla@gmail.com

set to “true”, if TLS should be used for the connection
(optional, defaults to false)
mail:tls=true

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

Sup? Did you fix the email on your server?
Trying to get the email on mine too and no luck by now!
Thanks.