setting config.action_mailer.raise_delivery_errors to true