now configuring email svc in config.js, and modified server.js to make the config generically global