property 'address' does not exist on type 'microsoft.graph.recipient'

Created on 23 January 2024, 11 months ago
Updated 10 September 2024, 3 months ago

When sending emails, I get this error message.

GuzzleHttp\Exception\ClientException: Client error: POST https://graph.microsoft.com/v1.0/users/<user>/sendmail resulted in a 400 Bad Request response: {"error":{"code":"RequestBodyRead","message":"The property 'address' does not exist on type 'microsoft.graph.recipient'. Make sure to only use property names that are defined by the type or mark the type as open type."}} in GuzzleHttp\Exception\RequestException::create() (line 113 of /opt/drupal/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php).

splitAddresses() does not correctly build the array structure ("toRecipients": [{"address": "<email>", "name": "<recipient name>"}]).

I have never created a patch so hopefully I did it right.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024