Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29769

Prevent thunderbird from magnifying image and use it as a link

$
0
0

We want to send out an email via Laravel backend with an image in it which is wrapped in an a tag, but thunderbird uses the magnifying tool on hover instead of being able to click on the image.

In the source it's like this:

<a href=3D"https://test.com/register?invite_id=3D57" style=3D"display: block; padding: 0; margin: 0; width: 100%;">
    <img src=3D"cid:993a9f6af8eed0e1c7cc4e6ae6422f8f@test.com" alt=3D"" style=3D"display: block; width: 100%;">
</a/>

And in the mail template:

<a href="https://test.com/register?invite_id={{$inviteId}}" style="display: block; padding: 0; margin: 0; width: calc(100%);">
    <img src="https://test.com/public/images/invitation-small.jpg" alt="" style="display: block; width: calc(100%); object-fit: contain;" overflowing="false" shrinktofit="true">
</a>

I even added overflowing="false" and shrinktofit="true" attributes but Thunderbird overwrites them and then it uses its deafult css.

Is there a fix for this?


Viewing all articles
Browse latest Browse all 29769

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>