Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e507323

Browse files
committed
bug #62203 [Mailer] Fix contentId assignment for inline attachments (webflo)
This PR was merged into the 7.4 branch. Discussion ---------- [Mailer] Fix contentId assignment for inline attachments | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Inline images are not displayed with MicrosoftGraphApiTransport. <!-- 🛠️ Replace this text with a concise explanation of your change: - What it does and why it's needed - A simple example of how it works (include PHP, YAML, etc.) - If it modifies existing behavior, include a before/after comparison Contributor guidelines: - ✅ Add tests and ensure they pass - 🐞 Bug fixes must target the **lowest maintained** branch where they apply https://symfony.com/releases#maintained-symfony-branches - ✨ New features and deprecations must target the **feature** branch and must add an entry to the changelog file of the patched component: https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - 🔒 Do not break backward compatibility: https://symfony.com/bc --> Commits ------- 4b84d7d Fix contentId assignment for inline attachments
2 parents 4569c74 + 4b84d7d commit e507323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Bridge/MicrosoftGraph/Transport/MicrosoftGraphApiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private function getMessageAttachments(Email $email): array
157157
];
158158

159159
if ('inline' === $disposition) {
160-
$attr['contentId'] = $filename;
160+
$attr['contentId'] = $attachment->getContentId();
161161
$attr['isInline'] = true;
162162
}
163163

0 commit comments

Comments
 (0)