server fails to start

bristol406 5 years ago

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>
Anton Tananaev 5 years ago

The most common cause is invalid XML format in your config file.

bristol406 5 years ago

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.

Anton Tananaev 5 years ago

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.

bristol406 5 years ago

Yes, you are correct. I had a & in my password field.
Many thanks,

Mike