Make email config optional