Mail handling for templates
added razor engine