Notifications

Currently there are three channels to notify user about events.

Web

Web notification is a simple pop-up windown in the web interface or mobile app.

Web notifications are delivered instantly without any delays. It is possible enable sound for the notifications to attract attention of the user.

Email

There are two ways to configure email notifications:

All possible parameters are listed in the configuration file documentation (see mail.smtp.* parameters).

Tips:

Examples:

Use SSL server-wide:

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

Use STARTTLS server-wide:

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

Use SSL per-user:

SMS

SMS notifications are available since Traccar version 3.11. You need an SMPP service to enable SMS notifications in Traccar.

You need access to an SMPP server. Most of the major mobile service providers have SMPP servers. Alternatively you can install own proprietary or open source sever to send SMS via modem or mobile phone.

There are quite a few configuration paremeters required for SMS notifications. All possible parameters are listed in the configuration file documentation (see sms.smpp.* parameters).

Tips:

Examples:

<entry key='sms.smpp.enable'>true</entry>
<entry key='sms.smpp.host'>smpp.example.com</entry>
<entry key='sms.smpp.port'>2345</entry>
<entry key='sms.smpp.username'>systemId</entry>
<entry key='sms.smpp.password'>password</entry>
<entry key='sms.smpp.notificationsCharset'>GSM</entry>
<entry key='sms.smpp.notificationsDataCoding'>0</entry>
<entry key='sms.smpp.sourceAddress'>+79000000000</entry>

Templates

Traccar uses Velocity Engine for email and SMS notification templates (Velocity User Guide).

Templates can be easily adjusted to your needs or translated.

You do not need configure anything by default, but if you want you can change templates root folder, mail and sms subfolders.

Templates (*.vm) files must be in UTF-8 encoding.

Testing

You can test email and SMS notifications in your account dialog: