Reply

davejh 2 years ago

Well I have a spare mobile that has an unlimed sms and data plan. this mobile has an android app that scans my email for new traccar notifications. Any messages it finds with a phone number in the subject field will be sent as a sms to that number which is the number of the mobile I carry with me. The app needs the email subject field to be formatted in a particular way. I have edited the subject field in the email templates in traccar in the way the Android app needs as per the example below. The reason I need this is that I travel all over the UK to some remote places where I cant get emails but I can get sms messages. This android app is called emailtosmsgateway and it works very well. and it eliminates the need to use smsglobal.com which saves me money. https://play.google.com/store/apps/details?id=com.maxlabmobile.emailtosmsgateway

#set($subject = "ets:$device.phone")
<!DOCTYPE html>
<html>
<body>
Device: $device.name<br>
Online<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
</body>
</html>