SMS and mail notification, how to configure?

Antonio Banderas7 years ago

I'm doing my first steps with Traccar.
I have installed in an Amazon instance.
I don't know where to setup the mail parameters for notifications.
Samething with SMS notifications.

Can somebody point me in the right direction, please? Is there some documentation I'm missing?

Thanks in advance!

Anton Tananaev7 years ago
visiondrive7 years ago

Search the forum for SMPP and Email - I have made a post on this covering in detail.

Antonio Banderas7 years ago

Thank you, it worked!

Something I learned, if you are GMail as smtp, take care of not using an account with 2-Factor authentication on.
Also, try first using the smtp service from a program to verify that it is working. In my experience, even tough I was using an account with no 2-Factor authentication, I had to login via web and "accept less secure applications" to login with my GMail credentials.

This is the Python code I used to test that the SMTP service is OK:

import smtplib
 
server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls()
server.login('email_name@gmail.com', 'email_psw')
print 'Login Ok'
 
msg = 'Test msg from Python'
server.sendmail('email_name@gmail.com', 'email_to', msg)
print 'Sent Ok'
server.quit()