8000 minor #35589 [Mailer] Fix MandrillHttpTransport::getRecipients()'s ca… · symfony/symfony@9613f84 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9613f84

Browse files
committed
minor #35589 [Mailer] Fix MandrillHttpTransport::getRecipients()'s call (chalasr)
This PR was merged into the 5.1-dev branch. Discussion ---------- [Mailer] Fix MandrillHttpTransport::getRecipients()'s call | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Should make the CI green. Commits ------- f88d1bb [Mailer] Fix MandrillHttpTransport::getRecipients()'s call
2 parents cf9f5a0 + f88d1bb commit 9613f84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Mailer/Bridge/Mailchimp/Tests/Transport/MandrillHttpTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function testSend()
5959
$body = json_decode($options['body'], true);
6060
$message = $body['raw_message'];
6161
$this->assertSame('KEY', $body['key']);
62-
$this->assertSame('Saif Eddin <saif.gmati@symfony.com>', $body['to'][0]);
62+
$this->assertSame('saif.gmati@symfony.com', $body['to'][0]);
6363
$this->assertSame('Fabien <fabpot@symfony.com>', $body['from_email']);
6464

6565
$this->assertStringContainsString('Subject: Hello!', $message);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function doSendHttp(SentMessage $message): ResponseInterface
4949
$response = $this->client->request('POST', 'https://'.$this->getEndpoint().'/api/1.0/messages/send-raw.json', [
5050
'json' => [
5151
'key' => $this->key,
52-
'to' => $this->getRecipients($envelope->getRecipients()),
52+
'to' => $this->getRecipients($envelope),
5353
'from_email' => $envelope->getSender()->toString(),
5454
'raw_message' => $message->toString(),
5555
],

0 commit comments

Comments
 (0)
0