Text Templates for mail notification

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