add smtp credentials to the production config
fix some errors