8000 bug #51494 Fixed attachment base64 content string in MailerSendApiTra… · symfony/symfony@cd5af8b · GitHub
[go: up one dir, main page]

Skip to content

Commit cd5af8b

Browse files
committed
bug #51494 Fixed attachment base64 content string in MailerSendApiTransport (pavelwitassek)
This PR was merged into the 6.3 branch. Discussion ---------- Fixed attachment base64 content string in MailerSendApiTransport | Q 8000 | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #51492 | License | MIT - Fix base64 encoded body string of larger attachments in MailerSendApiTransport Commits ------- 5580080 Fixed attachment base64 content string in MailerSendApiTransport
2 parents a3b0d89 + 5580080 commit cd5af8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Bridge/MailerSend/Transport/MailerSendApiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private function prepareAttachments(Email $email): array
147147
$filename = $headers->getHeaderParameter('Content-Disposition', 'filename');
148148

149149
$att = [
150-
'content' => $attachment->bodyToString(),
150+
'content' => base64_encode($attachment->getBody()),
151151
'filename' => $filename,
152152
];
153153

0 commit comments

Comments
 (0)
0