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 | 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy