Email Notification

MDSD9 months ago

Dear Team,

How can I check if email working fine from the server?

Anton Tananaev9 months ago

From a notification editing page you can test any of the channels, including email.

MDSD9 months ago

I got this message:

Connection timed out - ConnectException (... < SmtpMailManager:154 < *:99 < NotificatorMail:47 < NotificationResource:96 < ...)

Using office365. The configuration file will be like this:

        <entry key='mail.smtp.host'>smtp.office365.com</entry>
        <entry key='mail.smtp.port'>587</entry>
        <entry key='mail.smtp.starttls.enable'>true</entry>
        <entry key='mail.smtp.from'>ivms@mywebsite.com</entry>
        <entry key='mail.smtp.auth'>true</entry>
        <entry key='mail.smtp.username'>ivms@mywebsite.com</entry>
        <entry key='mail.smtp.password'>xxxxxxxxx</entry>

        <entry key='mail.smtp.port'>465</entry>
        <entry key='mail.smtp.ssl.enable'>true</entry>

What is the reason?

Anton Tananaev9 months ago

The error message is pretty clear.

MDSD9 months ago

Hi Anton,

Not Clear to me. What should I do?

Anton Tananaev9 months ago

The error message tells us that the server doesn't accept the connection. Where did you get the details from? Why do you have two different ports? Have you verified the details using any SMTP client?

Jack9 months ago

try to selecte the right port and make test

<entry key='mail.smtp.port'>465</entry>
<entry key='mail.smtp.port'>587</entry>
Unknown3 months ago

comigo acontece o mesmo

mensagem de erro é essa : Connection timed out - ConnectException (... < SmtpMailManager:154 < *:99 < NotificatorMail:44 < Notificator:39 < NotificationResource:107 < ...)

minha configuração no arquivo traccar.xml é essa :

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://localhost/traccar?zeroDateTimeBehavior=round&amp;serverTimezone=UTC&amp;allowPublicKeyRetrieval=true&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>root</entry>
    <entry key='database.password'>root</entry>

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

</properties>

o que está errado ? minha senha de app está ativada normalmente

Anton Tananaev3 months ago

Please don't duplicate your questions in the future:

https://www.traccar.org/forums/topic/erro-ao-criar-em-notificacoes-gmail/