From 558a06bea40d1fecf26c2f33ab35b9e2bc4a7b63 Mon Sep 17 00:00:00 2001 From: Tietew Date: Thu, 2 May 2024 23:56:45 +0900 Subject: [PATCH] fix: incorrect parameter name in SesV2Transport (#51265) --- src/Illuminate/Mail/Transport/SesV2Transport.php | 2 +- tests/Mail/MailSesV2TransportTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Illuminate/Mail/Transport/SesV2Transport.php b/src/Illuminate/Mail/Transport/SesV2Transport.php index 85debd5b808e..b94973f8fc6f 100644 --- a/src/Illuminate/Mail/Transport/SesV2Transport.php +++ b/src/Illuminate/Mail/Transport/SesV2Transport.php @@ -56,7 +56,7 @@ protected function doSend(SentMessage $message): void foreach ($message->getOriginalMessage()->getHeaders()->all() as $header) { if ($header instanceof MetadataHeader) { - $options['Tags'][] = ['Name' => $header->getKey(), 'Value' => $header->getValue()]; + $options['EmailTags'][] = ['Name' => $header->getKey(), 'Value' => $header->getValue()]; } } } diff --git a/tests/Mail/MailSesV2TransportTest.php b/tests/Mail/MailSesV2TransportTest.php index 2170dc256d2e..9f343d53c91e 100755 --- a/tests/Mail/MailSesV2TransportTest.php +++ b/tests/Mail/MailSesV2TransportTest.php @@ -75,7 +75,7 @@ public function testSend() return $arg['Source'] === 'myself@example.com' && $arg['Destination']['ToAddresses'] === ['me@example.com', 'you@example.com'] && $arg['ListManagementOptions'] === ['ContactListName' => 'TestList', 'TopicName' => 'TestTopic'] && - $arg['Tags'] === [['Name' => 'FooTag', 'Value' => 'TagValue']] && + $arg['EmailTags'] === [['Name' => 'FooTag', 'Value' => 'TagValue']] && strpos($arg['Content']['Raw']['Data'], 'Reply-To: Taylor Otwell ') !== false; })) ->andReturn($sesResult); @@ -113,7 +113,7 @@ public function testSesV2LocalConfiguration() 'region' => 'eu-west-1', 'options' => [ 'ConfigurationSetName' => 'Laravel', - 'Tags' => [ + 'EmailTags' => [ ['Name' => 'Laravel', 'Value' => 'Framework'], ], ], @@ -146,7 +146,7 @@ public function testSesV2LocalConfiguration() $this->assertSame([ 'ConfigurationSetName' => 'Laravel', - 'Tags' => [ + 'EmailTags' => [ ['Name' => 'Laravel', 'Value' => 'Framework'], ], ], $transport->getOptions());