added domain var + some tpl changes in mail notification app