Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image links broken in Gmail because of google's Image proxy

Tags:

php

email

gmail

Image links in gmail are broken because of google's Image proxy (news1,news2). I can't load my site's images in gmail.

Actual image path is: http://sampleimageurl.com/images/logo.jpg

But I get the same image path like this in gmail:

https://ci3.googleusercontent.com/proxy/CUiMBo2ELdin8h5R_jKaarbsjQOZUXM3765smBK1PB4BsKq9EsVziwcOYFqjZqCkRDyu1jzoityEA_PJ=s0-d-e1-ft#http://sampleimageurl.com/images/logo.jpg

Does anyone knows how to solve this issue?

like image 733
Balaji Kandasamy Avatar asked Dec 10 '13 10:12

Balaji Kandasamy


People also ask

Does Gmail use proxy images?

When your users open email messages, Gmail uses Google's secure proxy servers to serve images that might be included in these messages. This protects your users and domain against image-based security vulnerabilities.

Why are my images breaking in Gmail?

If images aren't correctly displayed in the emails sent (you can send you a test email to try), it means your Gmail draft is partially broken. In that case, best is to create a new draft, and re-insert your image in this new draft.

What is image proxy?

Using an image proxy means that all requests for images made by Mattermost clients will go through the proxy instead of contacting third-party servers directly. This helps protect user privacy by preventing third-party servers from tracking who views an image.

What is Google user content proxy?

The Google Image Proxy is a caching proxy server. Every time an image link is included in email the request will go to the Google Image Proxy first to see if it has been cached, if so it should serve it up from the proxy or it will go fetch it and cache it there after.


2 Answers

Because your image wasn't open to public.

You need make sure the new Gmail image proxy can fetch your image from google server.

like image 89
mrduguo Avatar answered Sep 21 '22 00:09

mrduguo


In Google Apps, it's now possible to disable Image Proxy for GMail (in Apps Settings). Or, better, you can white-list your internal URLs for which image proxying should be disabled.

like image 39
sereda Avatar answered Sep 22 '22 00:09

sereda