[Mailer][Mime] Update inline part names with newly generated ContentId
This commit is contained in:
parent
2eddb5165c
commit
eb14a1e1f0
@ -491,6 +491,7 @@ class Email extends Message
|
|||||||
$attachment['inline'] = true;
|
$attachment['inline'] = true;
|
||||||
$inlineParts[$name] = $part = $this->createDataPart($attachment);
|
$inlineParts[$name] = $part = $this->createDataPart($attachment);
|
||||||
$html = str_replace('cid:'.$name, 'cid:'.$part->getContentId(), $html);
|
$html = str_replace('cid:'.$name, 'cid:'.$part->getContentId(), $html);
|
||||||
|
$part->setName($part->getContentId());
|
||||||
continue 2;
|
continue 2;
|
||||||
}
|
}
|
||||||
$attachmentParts[] = $this->createDataPart($attachment);
|
$attachmentParts[] = $this->createDataPart($attachment);
|
||||||
|
Reference in New Issue
Block a user