Question

Images on Gmail with problem

Complicated issue:

The emails with image sent from my email marketing system for Gmail accounts stopped displaying the images. Ex. <Img src = “http://www.dominio.com.br/uploads/assets/imagem1.jpg” alt = “”> in GMail is getting <img src = “image1.jpg” alt = “”> only.

Looking at the code it seems that GMail is removing the full location of the image and leaving only the file name in the src attribute.

I tried sending my own server and yahoo and images appear without problem, only in GMail that the problem appears.

Could someone show me what to do?

Thanks.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I found the problem, and seems so weird.

The problem was that in my e-mail’s html body the src attribute was referencing the image like <img src=“HTTP://www.image.local/image.jpg” alt=“” /> with the protocol upper case. After I rewrite the src value to “http://www.image.local/image.jpg” (protocol in lower case) the GMail return to show the image properly.