Move email config to config file