You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey folks,
thanks for that great piece of code btw. 💌
I recently sent some mails with inline svg elements representing brand logos i worked for.
Should have been tested that before i sent my "0 brands i worked for" mail 🫠
For some reason gmail webclient decided to strip that out of the mail html wich is kinda weird as always.
converting it to base64 and using img tag is a possible workaround wich a medium post provided as an solution ( https://medium.com/@muhammadabdullahkhalil/why-your-svg-icons-break-in-gmail-and-how-to-fix-it-in-rails-with-one-line-of-code-eb4f62fdb073 ), but didnt work on my end with the following:
Would have been neat if compatibility checker would notice that one and warns me about that.
Even better would be if react mail detects svg tags and converts them into base64 img tags and could opt out or opt in for that feature. But that decisions are on your end of course.
react-mail version: 4.0.16
Shortest svg i used in mail:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
thanks for that great piece of code btw. 💌
I recently sent some mails with inline svg elements representing brand logos i worked for.
Should have been tested that before i sent my "0 brands i worked for" mail 🫠
For some reason gmail webclient decided to strip that out of the mail html wich is kinda weird as always.
converting it to base64 and using img tag is a possible workaround wich a medium post provided as an solution ( https://medium.com/@muhammadabdullahkhalil/why-your-svg-icons-break-in-gmail-and-how-to-fix-it-in-rails-with-one-line-of-code-eb4f62fdb073 ), but didnt work on my end with the following:
Would have been neat if compatibility checker would notice that one and warns me about that.
Even better would be if react mail detects svg tags and converts them into base64 img tags and could opt out or opt in for that feature. But that decisions are on your end of course.
react-mail version: 4.0.16
Shortest svg i used in mail:
Proposal
I would love to contribute here but i really lack the time actually and thought it would maybe be helpful to just place a flag on it.
Edit:
It also exsists here:
https://www.caniemail.com/features/image-svg/
Beta Was this translation helpful? Give feedback.
All reactions