Skip to content

[Mailer] Fix mailjet image embedding #38529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

Sandldan
Copy link
Contributor

Filename is not enough to embed the image through cid, ContentID field
has to be set with the cid identifier used in the HTMLPart

Q A
Branch? 5.1
Bug fix? yes
New feature? no
Deprecations? no
Tickets none
License MIT
Doc PR not needed

Hello!

While switching from Mandrill to Mailjet I noticed that embedding images was not working properly, the Content-ID mime is not set properly without setting the ContentID key. With this change things will work as described in the symfony documentation

Mailjet reference

Filename is not enough to embed the image through cid, ContentID field
has to be set with the cid identifier used in the HTMLPart
@fabpot
Copy link
Member

fabpot commented Oct 12, 2020

Thank you @Sandldan.

@fabpot fabpot merged commit 19c550d into symfony:5.x Oct 12, 2020
@fabpot fabpot mentioned this pull request Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants