Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cd5af8b

Browse filesBrowse 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
Copy full SHA for cd5af8b

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Mailer/Bridge/MailerSend/Transport/MailerSendApiTransport.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.