8000 [Mailer] Fix MandrillHttpTransport::getRecipients()'s call · Pchol/symfony@f88d1bb · GitHub
[go: up one dir, main page]

10000
Skip to content

Commit f88d1bb

Browse files
committed
[Mailer] Fix MandrillHttpTransport::getRecipients()'s call
1 parent c29989d commit f88d1bb

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
@@ -57,7 +57,7 @@ public function testSend()
5757
$body = json_decode($options['body'], true);
5858
$message = $body['raw_message'];
5959
$this->assertSame('KEY', $body['key']);
60-
$this->assertSame('Saif Eddin <saif.gmati@symfony.com>', $body['to'][0]);
60+
$this->assertSame('saif.gmati@symfony.com', $body['to'][0]);
6161
$this->assertSame('Fabien <fabpot@symfony.com>', $body['from_email']);
6262

6363
$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
@@ -47,7 +47,7 @@ protected function doSendHttp(SentMessage $message): ResponseInterface
4747
$response = $this->client->request('POST', 'https://'.$this->getEndpoint().'/api/1.0/messages/send-raw.json', [
4848
'json' => [
4949
'key' => $this->key,
50-
'to' => $this->getRecipient 4ED8 s($envelope->getRecipients()),
50+
'to' => $this->getRecipients($envelope),
5151
'from_email' => $envelope->getSender()->toString(),
5252
'raw_message' => $message->toString(),
5353
],

0 commit comments

Comments
 (0)
0