Here is what you need to put in the config:
<entry key='mail.smtp.host'>smtp.example.com</entry> for STARTTLS <entry key='mail.smtp.port'>587</entry> <entry key='mail.smtp.starttls.enable'>true</entry> for SSL <entry key='mail.smtp.port'>465</entry> <entry key='mail.smtp.ssl.enable'>true</entry> <entry key='mail.smtp.from'>traccar@example.com</entry> <entry key='mail.smtp.auth'>true</entry> <entry key='mail.smtp.username'>traccar@example.com</entry> <entry key='mail.smtp.password'>password</entry>
Alternatively you can put same parameters in user attributes.
Perfekt, thanks.
I send with SSL, but the mail.smtp.from didn´t work. (I changed the address with an address in my domain.) The mail sends without a senderaddress.
Can you please show the header of received email and email config of traccar?
Actually, I want to see
<entry key='mail.smtp.from'>traccar@example.com</entry>
from config and
"From: " and "Return-Path: "
from header.
<entry key='mail.smtp.from'>myname@mydomain.de</entry>
Return-Path: <myname@mydomain.de> Delivered-To: myname@mydomain.de Received: from traccar.mydomain.de (unknown [109.192.3.xx]) by mail.mydomain.de (Postfix) with ESMTPA id 594D3E1A9F for <myname@mydomain.de>; Sun, 10 Jul 2016 10:11:16 +0200 (CEST) To: myname@mydomain.de Message-ID: <15196315.3.1468138276665.JavaMail.root@traccar> Subject: iPad: online MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bitDevice: iPad
Online
Time: Sun Jul 10 10:11:16 CEST 2016
i added attributes as admin for smtp config
mine is an internal company server without any authentication
so i used - <entry key='mail.smtp.host'>smtp.example.com</entry>
but after restarting traccar service
the custom added attributes disappear
unable to receive notifications email too
this is my settings in traccar.xml
<!-- EMAIL SETTINGS --> <entry key='mail.smtp.host'>mail.trackcentral.in</entry> <entry key='mail.smtp.port'>25</entry> <entry key='mail.smtp.from'>gpsbot_noreply@trackcentral.in</entry> <entry key='mail.smtp.username'>gpsbot@trackcentral.in</entry> <entry key='mail.smtp.password'>password</entry>
Do you mean they disappear from the config?
Добрый день!
Я добавил строки в traccar.xml но служба после изменения не запустилась.
в файле wrapper.conf надо что то изменять?
Смотрите wrapper лог файл.
you have mentioned either use config.xml or add attribute
if i add smtp attributes in user account settings then it disappear after restart of traccar service
not in config.xml
karthinksg,
the custom added attributes disappear
Silly question, but did you press "Save" in account dialog after editing attributes?
If yes, you should see POST request in your browser debug console
https://cloud.mail.ru/public/CYtN/pFxbN6Rkd
Anton Tananaev, is there any place where karthinksg can download last build of traccar and webclient, there was fixes about "from" and in attributes editor?
Here is the latest build:
https://www.dropbox.com/s/cgmlansv32j3ii0/tracker-server.jar
Антон, не много не понял как активировать уведомления через почту.
Поправьте меня если что не так:
Так должно быть или еще что то пропустил?
Дело в том что после редактирования служба не запускается.
Все правильно. Как я сказал выше, вам нужно логи смотреть если служба не запускается.
Hi,
where can I set the server settings like smtp for notifications?
Webinformations are faded in, but no mails.
I tried differend mailadresses in the usersettings whitch have the tracker. All check marks in notification setting is set (web and mail).
Greetings, Thomas