change email template

You k5 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 Tananaev5 years ago

Email uses "full" templates.

You k5 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 k5 years ago

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

Anton Tananaev5 years ago

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

You k5 years ago

is there any other way to change it please ?

Anton Tananaev5 years ago

You would need to change the code.

Roylee01a year 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 Tananaeva year ago

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

Roylee01a year 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 Tananaeva year ago

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