add email config to template