private void sendTemplateIdEmail(ChannelHandlerContext ctx, User user, String[] split, int msgId) {
int dashId = Integer.parseInt(split[1]);
DashBoard dash = user.profile.getDashByIdOrThrow(dashId);
long widgetId = Long.parseLong(split[2]);
DeviceTiles deviceTiles = (DeviceTiles) dash.getWidgetById(widgetId);
long templateId = Long.parseLong(split[3]);
TileTemplate template = deviceTiles.getTileTemplateByIdOrThrow(templateId);
String subj = "Template ID for " + template.name;
String body = templateIdMailBody
.replace(Placeholders.TEMPLATE_NAME, template.name)
.replace(Placeholders.TEMPLATE_ID, template.templateId);
log.trace("Sending template id mail for user {}, with id : '{}'.", user.email, templateId);
mail(ctx.channel(), user.email, subj, body, msgId, true);
}