change email template

You k4 years ago

Hi i would like to customize the email report by adding my signature
i've checked on templater folder but didn't find it

thanks or your help

Anton Tananaev4 years ago

Email uses "full" templates.

You k4 years ago

Hi Antonn

that's what i've on full telmplates :

alarm.vm deviceMoving.vm deviceOverspeed.vm driverChanged.vm ignitionOff.vm test.vm
commandResult.vm deviceOffline.vm deviceStopped.vm geofenceEnter.vm ignitionOn.vm textMessage.vm
deviceFuelDrop.vm deviceOnline.vm deviceUnknown.vm geofenceExit.vm maintenance.vm unknown.vm

please where can i find the file for email report to perform the change ?

Thanks

You k4 years ago

the email only contains this " The report is in the attachment." i would like to add my signature to it

Anton Tananaev4 years ago

Looks like for now it's hardcoded. There is no template for it.

You k4 years ago

is there any other way to change it please ?

Anton Tananaev4 years ago

You would need to change the code.

Roylee016 months ago

I was wondering if this still is the case. And if this is the case, where can I find the lines of code to edit "The report is in the attachment.".

Thanks in advance!

Anton Tananaev6 months ago

Yes and you can find it by using a simple search.

Roylee016 months ago

Like here?: https://www.traccar.org/forums/topic/email-report-translation/
So I need to modify sourcecode and build it myself from github?
Is it possible to change it with an entry in the traccar.xml? (a sugestion for future releases??)

Anton Tananaev6 months ago

There are no templates or configuration. You have to change the source code and build it yourself.