From 835f43f3e50f7727837800caaf536b5018f9308a Mon Sep 17 00:00:00 2001 From: ddegentesh Date: Tue, 26 Jan 2021 10:36:25 -0500 Subject: [PATCH] [Mailer][Mime] Update inline part names with newly generated ContentId --- Email.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Email.php b/Email.php index fa01e39..940cf48 100644 --- a/Email.php +++ b/Email.php @@ -491,6 +491,7 @@ private function prepareParts(): ?array $attachment['inline'] = true; $inlineParts[$name] = $part = $this->createDataPart($attachment); $html = str_replace('cid:'.$name, 'cid:'.$part->getContentId(), $html); + $part->setName($part->getContentId()); continue 2; } $attachmentParts[] = $this->createDataPart($attachment);