#Image will not display in gmail

8 messages · Page 1 of 1 (latest)

gilded meadow
#

I am using laravel notifications for my email handling. The email we send sends an image. This image get's displayed in thunderbird, outlook and otherclients. However it does not work in gmail clients. I looked around everywhere and nothing seems to get it working.

My setup

To test everything I do it locally. I forward http on my port 8080 to ngrok so gmail should be able to make requests to the url.
here is the code I am referring to when I say it does not work

@props(['url'])
<tr>
    <td class="header">
        <a href="{{ $url }}">
            <img src="https://ngrok-link.app/images/test.png" style="max-width: 20em" alt="Motorroutes logo">
        </a>
    </td>
</tr>

##other things I noticed

I notice that if I fill in any other public image url it does seem to work but as soon as I put it on the server it seems that it just does not want to work.

Thanks in advance for any responses 🙂

cloud talon
#

Same here, gmail doesn't show the local image. It works from the staging/production server or cdn. Probably because of the way they handle links/images. As long as it works when sending for real, I dont worry about it

gilded meadow
#

I understand why it will not show in the local env. since google can't make a request to localhost. To solve this I used ngrok to tunnel http requests. But that does not matter since for me it also does not work on our production env. 😦

cloud talon
#

I assumed it just didn't work locally, because you said "I do it locally". And only mentioned the ngrok link.

#

I'm putting the images/assets on s3/digital ocean spaces. That works with Gmail for me. Just saying, there must be a way to make Google take it

gilded meadow
#

Oh I should have mentioned that better

regal tundra
#

I don't know the solution but I do know that getting emails to properly get displayed in all email clients is the most complex job in the world.

tawny hill
#

In gmail, go to the message and then "show original". From here you can see the eml after gmail has parsed it which might help to see if it is indeed stripped out. Or use the browser inspector directly in gmail and see if it's a blocked network request or something else.