Skip to content

Commit

Permalink
Fix Resend transport headers bug (#53687)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot authored Nov 27, 2024
1 parent ae1ce8d commit 1d32031
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Mail/Transport/ResendTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ protected function doSend(SentMessage $message): void

if ($email->getAttachments()) {
foreach ($email->getAttachments() as $attachment) {
$headers = $attachment->getPreparedHeaders();
$attachmentHeaders = $attachment->getPreparedHeaders();

$filename = $headers->getHeaderParameter('Content-Disposition', 'filename');
$filename = $attachmentHeaders->getHeaderParameter('Content-Disposition', 'filename');

$item = [
'content_type' => $headers->get('Content-Type')->getBody(),
'content_type' => $attachmentHeaders->get('Content-Type')->getBody(),
'content' => str_replace("\r\n", '', $attachment->bodyToString()),
'filename' => $filename,
];
Expand Down

0 comments on commit 1d32031

Please sign in to comment.