Feature #96285
open
SVG in loginLogo is also used in the default email-template. Problem in Outlook.
Added by Mario Wilhelm over 3 years ago.
Updated 8 days ago.
Sprint Focus:
On Location Sprint
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.

SystemEmail.html
<f:image src="{typo3.systemConfiguration.backend.loginLogo}" ... />

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.
Files
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.
In this patchset I embedded the logo into the email template:
https://review.typo3.org/c/Packages/TYPO3.CMS/+/75727
This 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.
- Sprint Focus set to On Location Sprint
- Related to Feature #75191: Converting svg to png not possible without cropping or masking the image added
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" />
See also https://forge.typo3.org/issues/75191 for more context.
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.
It would be nicer if we could just force it to create a scaled image and use the file format which is appropriate.
Also available in: Atom
PDF