Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aefdf42

Browse files
committed
bug #49214 [Mailer] add Sender to the list of bypassed headers (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [Mailer] add Sender to the list of bypassed headers | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #48936 | License | MIT | Doc PR | Commits ------- f50bec1 add Sender to the list of bypassed headers
2 parents daec724 + f50bec1 commit aefdf42

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)