diff --git a/src/Illuminate/Mail/Transport/ResendTransport.php b/src/Illuminate/Mail/Transport/ResendTransport.php index 73218c51d9d7..43557fc159cd 100644 --- a/src/Illuminate/Mail/Transport/ResendTransport.php +++ b/src/Illuminate/Mail/Transport/ResendTransport.php @@ -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, ];