Text Templates for mail notification

Fixed the syntax errors, travis throws to errors, one for missing content in mail, but looks like false positive. 

 	#934