I am writing a mail class in Laravel that show a svg file from url inside an imp tag. When the email is sent the svg file is replaced with a blue question mark and is not showing the alt text. But when I view the blade as a web page it is working fine.
Here is the code for the svg file:
<a href="{{ $url }}">
<img alt="SVG" height="36" src='https://exmaple.com/someFile.svg' width="127">
</a>
<iframe name="sif1" sandbox="allow-forms allow-modals allow-scripts" frameborder="0"></iframe>
Thanks in advance
CodePudding user response:
Many email clients don't support SVG. Unfortunately, email clients don't update like browsers. You can follow this link for the guidelines about using SVG in mail. http://stylecampaign.com/blog/2014/01/basics-of-svg-in-email/