- Issue of the topic:I’m trying to set up mail binding so it can send me warning through emails when something irregular happened but it is returning me some error while trying to connect to smtp.gmail.com
My current mail set-up is as this:
rule “Someone left the office”
Item Presence_Phone_Someone changed from ON to OFF
val mailActions = getActions(“mail”,“mail:smtp:gmail”)
mailActions.sendMail(“email@example.com”, “someone!”, “someone had left the office.”)
The error I receive when reading the log:
[ab.binding.mail.internal.SMTPHandler] - javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
I’m currently testing the mail binding on my own XPS-Ubuntu 20.04 at the moment.
Thanks for any help or suggestion on how to resolve this. What would be the best way to test my mail and mail rules as right now I’m using network binding with my phone switching on-off to check the mail actions and it is quite an issue setting up for the iOS device as well.