Skip to content

Commit

Permalink
[Mailer][Mime] Update inline part names with newly generated ContentId
Browse files Browse the repository at this point in the history
  • Loading branch information
ddegentesh authored and fabpot committed Feb 5, 2021
1 parent 66704cf commit 835f43f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 835f43f

Please sign in to comment.