Skip to content

Commit 8f53ac0

Browse files
Merge branch '5.0'
* 5.0: [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 8e3f80a + 488ea8e commit 8f53ac0

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)