Skip to content

Commit 558a06b

Browse files
Tietewfunc0der
authored andcommitted
fix: incorrect parameter name in SesV2Transport (laravel#51265)
1 parent 4228a4b commit 558a06b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Illuminate/Mail/Transport/SesV2Transport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function doSend(SentMessage $message): void
5656

5757
foreach ($message->getOriginalMessage()->getHeaders()->all() as $header) {
5858
if ($header instanceof MetadataHeader) {
59-
$options['Tags'][] = ['Name' => $header->getKey(), 'Value' => $header->getValue()];
59+
$options['EmailTags'][] = ['Name' => $header->getKey(), 'Value' => $header->getValue()];
6060
}
6161
}
6262
}

tests/Mail/MailSesV2TransportTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testSend()
7575
return $arg['Source'] === '[email protected]' &&
7676
$arg['Destination']['ToAddresses'] === ['[email protected]', '[email protected]'] &&
7777
$arg['ListManagementOptions'] === ['ContactListName' => 'TestList', 'TopicName' => 'TestTopic'] &&
78-
$arg['Tags'] === [['Name' => 'FooTag', 'Value' => 'TagValue']] &&
78+
$arg['EmailTags'] === [['Name' => 'FooTag', 'Value' => 'TagValue']] &&
7979
strpos($arg['Content']['Raw']['Data'], 'Reply-To: Taylor Otwell <[email protected]>') !== false;
8080
}))
8181
->andReturn($sesResult);
@@ -113,7 +113,7 @@ public function testSesV2LocalConfiguration()
113113
'region' => 'eu-west-1',
114114
'options' => [
115115
'ConfigurationSetName' => 'Laravel',
116-
'Tags' => [
116+
'EmailTags' => [
117117
['Name' => 'Laravel', 'Value' => 'Framework'],
118118
],
119119
],
@@ -146,7 +146,7 @@ public function testSesV2LocalConfiguration()
146146

147147
$this->assertSame([
148148
'ConfigurationSetName' => 'Laravel',
149-
'Tags' => [
149+
'EmailTags' => [
150150
['Name' => 'Laravel', 'Value' => 'Framework'],
151151
],
152152
], $transport->getOptions());

0 commit comments

Comments
 (0)