Implement email config for production and development