[Mailer][Mime] Update inline part names with newly generated ContentId

This commit is contained in:
ddegentesh 2021-01-26 10:36:25 -05:00 committed by Fabien Potencier
parent 2eddb5165c
commit eb14a1e1f0
1 changed files with 1 additions and 0 deletions

View File

@ -491,6 +491,7 @@ class Email extends Message
$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);