Skip to content

Commit f50bec1

Browse files
committed
add Sender to the list of bypassed headers
1 parent b33bf07 commit f50bec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Bridge/Sendinblue/Transport/SendinblueApiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private function prepareAttachments(Email $email): array
136136
private function prepareHeadersAndTags(Headers $headers): array
137137
{
138138
$headersAndTags = [];
139-
$headersToBypass = ['from', 'to', 'cc', 'bcc', 'subject', 'reply-to', 'content-type', 'accept', 'api-key'];
139+
$headersToBypass = ['from', 'sender', 'to', 'cc', 'bcc', 'subject', 'reply-to', 'content-type', 'accept', 'api-key'];
140140
foreach ($headers->all() as $name => $header) {
141141
if (\in_array($name, $headersToBypass, true)) {
142142
continue;

0 commit comments

Comments
 (0)