Throw an exception when API call fails

Created on 15 January 2025, 3 months ago

Problem/Motivation

If the call to the Microsoft Graph API fails currently a response object is returned. This is normally not logged anywhere so a normal Drupal user will just end up with mails that never arrive if there is an issue with for example the sender address.

Steps to reproduce

Send an email with a sender that the Graph API account is not allowed to send emails as. This will silently fail, and the mail never arrives.

Proposed resolution

Throw a TransportException like other transport implementations do when there is an error, instead of returning a response object. A patch is attached that does this.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇳🇱Netherlands dennis_meuwissen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024