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());