TemplatedEmail - inlined image shows up as attachment #50409
-
I can't find a way to inline an image inside an email message and not show it as an attachment.
Then in twig: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Sounds like your email client has a problem displaying the mail, since solution number 1 should work (and does work fine for me). You should set the width and height attributes, though. |
Beta Was this translation helpful? Give feedback.
-
What I’m sure of is that an embedded file always is an attachment. Then the client will decide whether it shows such attachments. Unfortunately I have no idea how they’re doing it 😅 Friendly ping @hteumeuleu! |
Beta Was this translation helpful? Give feedback.
-
Hello. How do you send TemplatedEmail sync or async ? Do you use BodyRendererInterface before sending and signing like DKIMSigner ? I ask you because maybe I have similar issue, take a look at: #50685 |
Beta Was this translation helpful? Give feedback.
SOLUTION:
Problem was the SVG format of the image, which is not supported everywhere. It works now with PNG.