#set($subject = "$device.name: alarm!") <!DOCTYPE html> <html> <body> Device: $device.name<br> Alarm: $position.getString("alarm")<br> Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br> Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude°, $position.longitude°#{end}</a><br> </body> </html>