This needs additional scrutiny in another issue. Error may be thrown by either composeEmail or sendMail. But either way we are throwing gatewayError. It should be balled composeError (and make sure it can handle both types of errors)
Originally posted by @tomholub in #650 (comment)