Skip to content

Commit ff4ab50

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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
}

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)