Fix email config from