problem e-mail

netluca16 years ago

Hi everyone, I wanted to ask for advice.
I have an email problem with the latest version of traccar 3.17
Precise that in previous versions went.
this is error

For input string: " 465 " - NumberFormatException (... < Config:81 < PropertiesProvider:53 < NotificationMail:46 < ...)

and this is my part traccar.xml:

<entry key='mail.smtp.host'> smtp.gmail.com </entry>
<entry key='mail.smtp.port'> 465 </entry>
<entry key='mail.smtp.ssl.enable'> true </entry>
<entry key='mail.smtp.ssl.trust'> true </entry>
<entry key='mail.smtp.from'> *********@gmail.com </entry>
<entry key='mail.smtp.auth'> true </entry>
<entry key='mail.smtp.username'> *********@gmail.com </entry>
<entry key='mail.smtp.password'> ******** </entry>

thx Luca

deep6 years ago

@netluca1 please double check your config as I see that you have an empty/space before each entry!

<entry key='mail.smtp.port'> 465 </entry> < Empty space before and after value!
<entry key='mail.smtp.port'>465</entry> < NO empty space before and after values!

It's a common mistake when using copy/paste!

Best regards

netluca16 years ago

Many thanks deep.
I noticed, however, that another value was also to be removed, which if present creates problems
here is the correct configuration

<entry key = 'mail.smtp.host'>smtp.gmail.com</ entry>
<entry key = 'mail.smtp.port'>465</ entry>
<entry key = 'mail.smtp.ssl.enable'>true</ entry>
<entry key = 'mail.smtp.from'>*********</ entry>
<entry key = 'mail.smtp.auth'>true</ entry>
<entry key = 'mail.smtp.username'>*********@gmail.com</ entry>
<entry key = 'mail.smtp.password'>********</ entry>
deep6 years ago

Hello netluca1,
the correct value which you mean must be
<entry key='mail.smtp.ssl.trust'>*</entry>
and not
<entry key='mail.smtp.ssl.trust'>true</entry>

netluca16 years ago

more thx deep