Email Notifications

WhitbyRog8 years ago

Hi Anton

I have configured Traccar.xml with the following settings

    <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'>srmrttracker@gmail.com</entry>
    <entry key='mail.smtp.auth'>true</entry>
    <entry key='mail.smtp.username'>srmrttracker@gmail.com</entry>
    <entry key='mail.smtp.password'>***********</entry> *********** = valid password for srmrttracker@gmail.com

I have not received any email notifications yet.
I looked in the log file and found the following.

2016-12-29 12:10:35  WARN: Unknown SMTP host: smtp.gmail.com - MessagingException (... < NotificationMail:115 < *:129 < ...)

I know I'm doing something silly but don't know what.

Can you please help?

Regards Roger

Anton Tananaev8 years ago

There is some problem with your SMTP config. Check this thread:

https://www.traccar.org/forums/topic/smtp-config-for-notifications/

WhitbyRog8 years ago

Hi Anton

Thanks for the speedy reply I used the starttls settings and it's working fine now.

Kind regards Roger

Luis8 years ago

Hello,

WhitbyRog, can you please provide your settings to smpt ?

Best regards,
Luis Vásquez.

WhitbyRog8 years ago

Hi Luis

I entered the following in to traccar.xml
You might have to fiddle with you email settings to allow traccar too use it.
Traccar then sends notifications to the email you put in at login.

    <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'>myEmail@gmail.com</entry> (a real email address)
    <entry key='mail.smtp.auth'>true</entry>
    <entry key='mail.smtp.username'>myEmail@gmail.com</entry> (same email as line 4)
    <entry key='mail.smtp.password'>realPassword</entry>  (this is the email password)

Regards Roger