Mail notification doesn't work

Hans Strassguetl6 years ago

I am running TracCar on a Synology DS 218+ and want to start mail notfifications but reveice an error:

Unable to find resource 'full/test.vm' - ResourceNotFoundException (... < NotificationFormatter:82 < *:110 < *:93 < NotificatorMail:115 < NotificationResource:63 < ...)

I tried so much, but ending up having no clue of what's wrong..

My configurtion in traccar.xml

    <entry key='mail.smtp.host'>smtp.strato.de</entry>
    <entry key='mail.smtp.port'>465</entry>
    <entry key='mail.smtp.ssl.enable'>true</entry>
    <entry key='mail.smtp.from'>hans@motorradtouren.de</entry>
    <entry key='mail.smtp.auth'>true</entry>
    <entry key='mail.smtp.username'>hans@motorradtouren.de</entry>
    <entry key='mail.smtp.password'>*******</entry>

Any idea what I am doing wrong?

Anton Tananaev6 years ago

You are missing temple file.

Hans Strassguetl6 years ago

Thanks Anton for your fast! response,

unfortunately it is existing there ( volume1/@appstore/traccar/templates/full/test.vm ) I guess this is a problem resulting from running on a synology.
Is there any way to set the full path?

have a good evening,
Hans

Anton Tananaev6 years ago
Hans Strassguetl6 years ago

Anton, thanks a lot!

finally, based on your hints, I could solve the problem. It got obvious that Synology 218+ needs absolute paths being set.
I added

<entry key='templates.rootPath'>/volume1/@appstore/traccar/templates/</entry>

to my Traccar.xml before the mail configuration.
Now it works!