From fa3f901cf87d2b97297cd625a039f2ba0a1530ff Mon Sep 17 00:00:00 2001 From: Hugo Monteiro Date: Mon, 25 Nov 2019 14:55:17 +0000 Subject: [PATCH] mailer: mailchimp bridge is throwing undefined index _id when setting message id in mandrill http transport --- .../Mailer/Bridge/Mailchimp/Transport/MandrillHttpTransport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Mailer/Bridge/Mailchimp/Transport/MandrillHttpTransport.php b/src/Symfony/Component/Mailer/Bridge/Mailchimp/Transport/MandrillHttpTransport.php index 2c90472fc6dc6..17f7a7fcf3364 100644 --- a/src/Symfony/Component/Mailer/Bridge/Mailchimp/Transport/MandrillHttpTransport.php +++ b/src/Symfony/Component/Mailer/Bridge/Mailchimp/Transport/MandrillHttpTransport.php @@ -60,7 +60,7 @@ protected function doSendHttp(SentMessage $message): ResponseInterface throw new HttpTransportException(sprintf('Unable to send an email (code %s).', $result['code']), $response); } - $message->setMessageId($result['_id']); + $message->setMessageId($result[0]['_id']); return $response; }