Rules e-mail notification

He have set a When - Then rule and we want to enable the e-mail notification. Our configuration is as follow:

  • Gmail SMTP server address: smtp.gmail.com
  • Gmail SMTP name: Your full name
  • Gmail SMTP username: Your full Gmail address (e.g. you@gmail.com)
  • Gmail SMTP password: The password that you use to log in to Gmail
  • Gmail SMTP port (TLS): 587

We are getting the following error:

Error processing from TENANT_RULESET - NOTIFICATION_HANDLER_CONFIG_ERROR (Handler is not valid: email): Notification{name=‘null’, message=org.openremote.model.notification.EmailNotificationMessage@38407fc6, repeatFrequency=null, repeatInterval=‘null’, targets=[Target{type=USER, id=950e117a-fafc-4cb7-8cce-c246447f44c8}]}

Hi,

Further up the logs (during startup) the email notification handler is initialised with the provided credentials, it should provide more insight into why it fails to initialise.

IIRC: For gmail you don’t use your full email and/or password you have to generate app specific credentials and use your username (without @gmail.com):