Skip to content

Commit

Permalink
fix: incorrect parameter name in SesV2Transport
Browse files Browse the repository at this point in the history
  • Loading branch information
Tietew committed May 9, 2024
1 parent 67fbbc4 commit 00e7dac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Mail/Transport/SesV2Transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function doSend(SentMessage $message): void
if ($message->getOriginalMessage() instanceof Message) {
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()];
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions tests/Mail/MailSesV2TransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function testSend()
->with(m::on(function ($arg) {
return $arg['Source'] === 'myself@example.com' &&
$arg['Destination']['ToAddresses'] === ['me@example.com', 'you@example.com'] &&
$arg['Tags'] === [['Name' => 'FooTag', 'Value' => 'TagValue']] &&
$arg['EmailTags'] === [['Name' => 'FooTag', 'Value' => 'TagValue']] &&
strpos($arg['Content']['Raw']['Data'], 'Reply-To: Taylor Otwell <taylor@example.com>') !== false;
}))
->andReturn($sesResult);
Expand Down Expand Up @@ -111,7 +111,7 @@ public function testSesV2LocalConfiguration()
'region' => 'eu-west-1',
'options' => [
'ConfigurationSetName' => 'Laravel',
'Tags' => [
'EmailTags' => [
['Name' => 'Laravel', 'Value' => 'Framework'],
],
],
Expand Down Expand Up @@ -144,7 +144,7 @@ public function testSesV2LocalConfiguration()

$this->assertSame([
'ConfigurationSetName' => 'Laravel',
'Tags' => [
'EmailTags' => [
['Name' => 'Laravel', 'Value' => 'Framework'],
],
], $transport->getOptions());
Expand Down

0 comments on commit 00e7dac

Please sign in to comment.