SMTP error ?

Macan5 years ago

I have read about all forum posts how to set up SMTP and how to receive notifications via email and I made the settings in the traccar.xml file, but when I click to test email via a web server, this error is displayed:

![Local address contains control or whitespace - AddressException (... < NotificationMail:108 < NotificationResource:61 < ...)] 

Image : https://ibb.co/RSXcJ0Q

Does someone know what can be the problem ?

Thank you.

Anton Tananaev5 years ago

What's you email address and configuration?

Macan5 years ago

my email address is macano333@gmail.com

this is my configuration on traccar.xml:

<entry key='mail.smtp.host'>smtp.srv.hello.co</entry>
<entry key='mail.smtp.port'>465</entry>
<entry key='mail.smtp.starttls.enable'>true</entry>
<entry key='mail.smtp.from'>support@mydomain.com</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>support@mydomain.com</entry>
<entry key='mail.smtp.password'>$$$$$</entry>

I tried with SSL config and TTL but still doesnt work :(

Ernesto Vallejo5 years ago

I think that the error you are seeing is with the web app. If you by mistake added an email account with a leading or trailing blank space, application is trying to send email test to "email@domain.tld " (note the trailing space after last char) instead of "email@domain.tld"
Make sure your email accounts does not contain any leading or trailing blank spaces and retry.
Hope this helps.

Macan5 years ago

Thank you, I am blind sometimes. Now it is ok.

Regards