[Mailer] Fix mailjet image embedding
Filename is not enough to embed the image through cid, ContentID field has to be set with the cid identifier used in the HTMLPart
This commit is contained in:
parent
6844cb8685
commit
7ab772eeea
@ -158,6 +158,7 @@ class MailjetApiTransport extends AbstractApiTransport
|
||||
'Base64Content' => $attachment->bodyToString(),
|
||||
];
|
||||
if ('inline' === $headers->getHeaderBody('Content-Disposition')) {
|
||||
$formattedAttachment['ContentID'] = $headers->getHeaderParameter('Content-Disposition', 'name');
|
||||
$inlines[] = $formattedAttachment;
|
||||
} else {
|
||||
$attachments[] = $formattedAttachment;
|
||||
|
Reference in New Issue
Block a user