Skip to content

Commit 55b9539

Browse files
authored
fix: incorrect parameter name in SesV2Transport (#51352)
1 parent 67fbbc4 commit 55b9539

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
@@ -51,7 +51,7 @@ protected function doSend(SentMessage $message): void
5151
if ($message->getOriginalMessage() instanceof Message) {
5252
foreach ($message->getOriginalMessage()->getHeaders()->all() as $header) {
5353
if ($header instanceof MetadataHeader) {
54-
$options['Tags'][] = ['Name' => $header->getKey(), 'Value' => $header->getValue()];
54+
$options['EmailTags'][] = ['Name' => $header->getKey(), 'Value' => $header->getValue()];
5555
}
5656
}
5757
}

tests/Mail/MailSesV2TransportTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testSend()
7373
->with(m::on(function ($arg) {
7474
return $arg['Source'] === '[email protected]' &&
7575
$arg['Destination']['ToAddresses'] === ['[email protected]', '[email protected]'] &&
76-
$arg['Tags'] === [['Name' => 'FooTag', 'Value' => 'TagValue']] &&
76+
$arg['EmailTags'] === [['Name' => 'FooTag', 'Value' => 'TagValue']] &&
7777
strpos($arg['Content']['Raw']['Data'], 'Reply-To: Taylor Otwell <[email protected]>') !== false;
7878
}))
7979
->andReturn($sesResult);
@@ -111,7 +111,7 @@ public function testSesV2LocalConfiguration()
111111
'region' => 'eu-west-1',
112112
'options' => [
113113
'ConfigurationSetName' => 'Laravel',
114-
'Tags' => [
114+
'EmailTags' => [
115115
['Name' => 'Laravel', 'Value' => 'Framework'],
116116
],
117117
],
@@ -144,7 +144,7 @@ public function testSesV2LocalConfiguration()
144144

145145
$this->assertSame([
146146
'ConfigurationSetName' => 'Laravel',
147-
'Tags' => [
147+
'EmailTags' => [
148148
['Name' => 'Laravel', 'Value' => 'Framework'],
149149
],
150150
], $transport->getOptions());

0 commit comments

Comments
 (0)