added mailing and table templates
added template config for mailer