#96285SVG in loginLogo is also used in the default email-template. Problem in Outlook.
Description
In the Typo3 default email template (SystemEmail.html) the login.loginLogo is used.
We often use SVGs for the logo. It works fine in Typo3.
But in default email-template the same logo is used, but it is not visible in Outlook, because Outlook doesn’t supports SVG very well.
clipboard-202112081015-pukus.png
SystemEmail.html
<f:image src="{typo3.systemConfiguration.backend.loginLogo}" ... />
clipboard-202112081028-nyprh.png
Why not add an additional Field login.emailLogo for use of jpg or png only for the email?
OK, I can make my own copy but in the most purposes the default email-template is good. Only with this small issue.
Reviews 2
Related issues 1
Files 2
History 78
-
Mario Lubenka commented 09/13/22, 15:43
-
Mario Lubenka commented 09/26/22, 12:21
In this patchset I embedded the logo into the email template:
https://review.typo3.org/c/Packages/TYPO3.CMS/+/75727This not sufficient for Outlook though.
A patch allowing to configure a separate logo for use in the email template should be done based off the patchset above.
I’ll do that once the patchset has been merged – I don’t think I can add it separately. -
Georg Ringer changed Sprint Focus On Location Sprint 06/08/24, 08:14
-
Sybille Peters changed Related to #75191 03/19/25, 12:45
-
Sybille Peters commented 03/19/25, 12:58
I think it might be useful here to use f:image with fileExtension=“png”, e.g. like this:
<f:image src="{typo3.systemConfiguration.backend.loginLogo -> core:normalizedUrl()}” alt=“Logo” height=“41” width=“150” fileExtension=“png” /></p> <p>See also <a href=" https: forge.typo3.org issues target="_blank" rel="noreferrer">https://forge.typo3.org/issues/75191 for more context.</f:image>
However, I don’t know why img is used in the SystemEmail.html layout and not f:image.
I currently have the same problem, that SVGs in emails are not displayed by outlook. (Just embedding them does not solve the problem). I need a solution not just for the system email layout, but for sending emails when the logo is selected by editors, so it can be any supported format.
Using fileExtension=“png” with an SVG file worked for me.
-
Sybille Peters commented 03/19/25, 13:06
It would be nicer if we could just force it to create a scaled image and use the file format which is appropriate.
-
Georg Ringer changed Sprint Focus
On Location Sprint08/06/26, 15:48 -
Gerrit Code Review pushed patch set 1 for main to change 98180 status
NewUnder Review 11/29/26, 07:24
We also noticed this issue and are currently investigating it. :)
I haven’t read up on the Outlook specifics yet, but for now I hope embedding the logo works better.