Skip to content

Commit 488ea8e

Browse files
Merge branch '4.4' into 5.0
* 4.4: [DI] Service locators can't be decorated [HttpClient] force HTTP/1.1 when NTLM auth is used [Validation][FrameworkBundle] Allow EnableAutoMapping to work without auto-mapping namespaces [Console][SymfonyQuestionHelper] Handle multibytes question choices keys and custom prompt [DI] fix auto-binding service providers to their service subscribers [Mailer] fixed undefined index when sending mail
2 parents d2f08c4 + 5cb8036 commit 488ea8e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Mailchimp/Transport/MandrillApiTransport.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ protected function doSendApi(SentMessage $sentMessage, Email $email, Envelope $e
5757
throw new HttpTransportException(sprintf('Unable to send an email (code %s).', $result['code']), $response);
5858
}
5959

60-
$sentMessage->setMessageId($result['_id']);
60+
$firstRecipient = reset($result);
61+
$sentMessage->setMessageId($firstRecipient['_id']);
6162

6263
return $response;
6364
}

MandrillApiTransport.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ protected function doSendApi(SentMessage $sentMessage, Email $email, Envelope $e
5757
throw new HttpTransportException(sprintf('Unable to send an email (code %s).', $result['code']), $response);
5858
}
5959

60-
$sentMessage->setMessageId($result['_id']);
60+
$firstRecipient = reset($result);
61+
$sentMessage->setMessageId($firstRecipient['_id']);
6162

6263
return $response;
6364
}

0 commit comments

Comments
 (0)