Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gmail not displaying image on mail Laravel

I have this problem here when I send an email to Gmail the image is broken while on the other accounts like Outlook or others it shows fine. Only on Gmail it does not show.. the URL looks like this:

<img style="font-family:Avenir,Helvetica,sans-serif;box-sizing:border-box;max-width:100%;border:none;width:137px;height:68px" src="https://ci6.googleusercontent.com/proxy/jaMu0nmGV-1WVmzYhbjFTDw_r-Qbjx7qGpG0pSuGMkoVPpaQPfScmgx7vrmbYYmI7kH8gS4pC9gmteTfJqPn0FZ2LFRD-A=s0-d-e1-ft#https://evaluo.org/evaluo/assets/evaluollogo.svg" class="CToWUd">

As you can see all that proxy blla blla it is integrated before my image link :

https://evaluo.org/evaluo/assets/evaluollogo.svg

Can someone help with this ..?

like image 872
Agi Avatar asked Jan 20 '26 23:01

Agi


1 Answers

Try this:

  • Rename your images to something else with png, jpg or gif extensions only.
  • Don't use any kind of query string in your image url like ?t=34343
  • your image must include png, jpg or gif as an extension.
  • your image url must be mapped onto your image directly.
  • If you need to use some proxy url for your protected images then your response must include the proper header like Content-Type: image/jpeg
  • File extension and content-type header must match Status-code must be 200 instead of 403, 500 etc

Credit here.

There's other good solutions on that thread too.

like image 196
Programmer Avatar answered Jan 22 '26 12:01

Programmer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!