8000 [Mailer][Postmark] Set CID for attachments when it exists · symfony/symfony@83b0491 · GitHub
[go: up one dir, main page]

Skip to content

Commit 83b0491

Browse files
IssamRaouffabpot
authored andcommitted
[Mailer][Postmark] Set CID for attachments when it exists
1 parent 365aca3 commit 83b0491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Bridge/Postmark/Transport/PostmarkApiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private function getAttachments(Email $email): array
147147
];
148148

149149
if ('inline' === $disposition) {
150-
$att['ContentID'] = 'cid:'.$filename;
150+
$att['ContentID'] = 'cid:'.($attachment->hasContentId() ? $attachment->getContentId() : $filename);
151151
}
152152

153153
$attachments[] = $att;

0 commit comments

Comments
 (0)
0