8000 mailer: mailchimp bridge is throwing undefined index _id when setting… · symfony/symfony@fa3f901 · GitHub
[go: up one dir, main page]

Skip to content

Commit fa3f901

Browse files
committed
mailer: mailchimp bridge is throwing undefined index _id when setting message id in mandrill http transport
1 parent ec781c9 commit fa3f901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Bridge/Mailchimp/Transport/MandrillHttpTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function doSendHttp(SentMessage $message): ResponseInterface
6060
throw new HttpTransportException(sprintf('Unable to send an email (code %s).', $result['code']), $response);
6161
}
6262

63-
$message->setMessageId($result['_id']);
63+
$message->setMessageId($result[0]['_id']);
6464

6565
return $response;
6666
}

0 commit comments

Comments
 (0)
0