I can’t “magically solve” this problem without any context.
And I’m also a busy man within OpenRemote, so I don’t have a lot of time to spare.
We haven’t seen a lot of people using a custom mail configuration yet.
It should be simple, as all you need to do is setting up the environment variables.
Any problems should be logged during startup of the Manager container.
.
I think we should document this.
So, if someone succeeded to set up the mail server, (with Gmail or another service)
we could add a step-by-step guide to the OpenRemote documentation website.
That’s our best option.
If it helps - I encountered the problem when using a when/then rule to trigger an Alarm with high severity to send an email to an Assignee. The error below was displayed in the logs and removing ‘arm /opt/app/lib/javax.mail-1.5.0.jar’ inside the running Manager container and restarting the container seemed to provide a workaround:
Notification failed ‘16353146’: Target{type=CUSTOM, id=to:xxxxx@xxxxxx.net.au}, reason=NotificationProcessingException{reason=SEND_FAILURE, message=‘class com.sun.mail.handlers.text_html cannot be cast to class jakarta.activation.DataContentHandler (com.sun.mail.handlers.text_html and jakarta.activation.DataContentHandler are in unnamed module of loader ‘app’)’}