Gmail is one of the most popular free email services. To configure Gmail for notifications in Traccar, follow the steps below.
Assuming that you are using two-factor authentication for your Google account, first you have to create an app password:
Add the 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 the following items in the above configuration:
Note that the recipient address is your Traccar user email address. Make sure it's a valid address.