Tweaking logic to log error when emails can be sent instead of throwing one