8000 drop the Date header using the Postmark API transport · symfony/symfony@38b604a · GitHub
[go: up one dir, main page]

Skip to content

Commit 38b604a

Browse files
committed
drop the Date header using the Postmark API transport
1 parent 368bfb7 commit 38b604a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Bridge/Postmark/Transport/PostmarkApiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private function getPayload(Email $email, Envelope $envelope): array
9191
'Attachments' => $this->getAttachments($email),
9292
];
9393

94-
$headersToBypass = ['from', 'to', 'cc', 'bcc', 'subject', 'content-type', 'sender', 'reply-to'];
94+
$headersToBypass = ['from', 'to', 'cc', 'bcc', 'subject', 'content-type', 'sender', 'reply-to', 'date'];
9595
foreach ($email->getHeaders()->all() as $name => $header) {
9696
if (\in_array($name, $headersToBypass, true)) {
9797
continue;

0 commit comments

Comments
 (0)
0