I'm trying to set up email notification but when I add these lines to traccar.xml the server fails to start. Can anyone help please ?
<entry key='mail.smtp.host'>smtp.1und1.de</entry>
<entry key='mail.smtp.port'>587</entry>
<entry key='mail.smtp.starttls.enable'>true</entry>
<entry key='mail.smtp.from'>xxxxxxx@xxxxxxx.co.uk</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>xxxxxxx@xxxxxxx.co.uk</entry>
<entry key='mail.smtp.password'>xxxxxxxxxxxxxxx</entry>
The most common cause is invalid XML format in your config file.
Okay, thanks Anton. I copied and pasted the example from the traccar.org notifications document and edited in my own credentials. I will check for syntax errors.
Remember that some characters need to be escaped in XML. For example, if you have some special characters in the password, you have to escape those.
Yes, you are correct. I had a & in my password field.
Many thanks,
Mike
I'm trying to set up email notification but when I add these lines to traccar.xml the server fails to start. Can anyone help please ?
<entry key='mail.smtp.host'>smtp.1und1.de</entry> <entry key='mail.smtp.port'>587</entry> <entry key='mail.smtp.starttls.enable'>true</entry> <entry key='mail.smtp.from'>xxxxxxx@xxxxxxx.co.uk</entry> <entry key='mail.smtp.auth'>true</entry> <entry key='mail.smtp.username'>xxxxxxx@xxxxxxx.co.uk</entry> <entry key='mail.smtp.password'>xxxxxxxxxxxxxxx</entry>