Gmail Configuration

Gmail is one of the most popular free email services. To configure Gmail for notifications in Traccar follow steps below.

Assuming that you are using two factor authentication for your Google account, first you have to create an app password:

Add following lines to the Traccar configuration file:

<entry key='mail.smtp.port'>587</entry>
<entry key='mail.smtp.starttls.enable'>true</entry>
<entry key='mail.smtp.host'>smtp.gmail.com</entry>
<entry key='mail.smtp.from'>YourAddress@gmail.com</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>YourAddress@gmail.com</entry>
<entry key='mail.smtp.password'>YourPassword</entry>

You have to replace following items in the above configuration:

Note that recepient address is your Traccar user email address. Make sure it's a valid address.