I have a script to send emails to subscribed users and is currently facing issues with images not displaying properly for users using Gmail.
The images used in the email are publicly available, e.g.:
https://info.xxxx.vn/banner/2018/xxxx-600x300.jpg
https://info.xxxx.vn/banner/2018/xxxx2018v2-600x300.jpg
When the emails are sent to a Gmail user, the image link is changed by Gmail to:
https://ci3.googleusercontent.com/proxy/E6ElwPPH-lH4YdxOtzc8rl9GUpcPA_Kf1E0UFDxNT877wV70lA-KgwQDYQhTXU8ed7U9HJF21PMmGiv0M93jnAKvHszQcFdVAf7ApQta2QgQ=s0-d-e1-ft#https://info.xxxx.vn/banner/2018/xxxx-600x300.jpg
https://ci5.googleusercontent.com/proxy/xK0x7LIhvH9Inax29k0bZKsnC5FerVEhNXjyleL0lU0tbXgb2RBLOYcy_j834lJlOISKgwT6yzJmPWCuHGb9wBkycdEWvwGgWPWJ87NGAJbrosh6gibo9A=s0-d-e1-ft#https://info.xxxx.vn/banner/2018/xxxx2018v2-600x300.jpg
Each of the image links above returns response 404.
Things I've tried:
Is there a way for me to know the exact error which is returned by Google when trying to cache the image? Right now it is always showing the 404 error and there's no way for me to troubleshoot the exact issue.
I would really appreciate any other input as well which would help with troubleshooting the issue I am facing right now.
Thank you very much in advance.
This can also happen if the image is too large.
Using a 21MB GIF = ❌ response 404 error
Using a 1MB GIF = ✅ works great
the following solved it for us: whitelisted the following domains in WHM in the "Add IP to Firewall" section:
ci3.googleusercontent.com
ci4.googleusercontent.com
ci5.googleusercontent.com
ci6.googleusercontent.com
You may refer with this forum. This might be due to a DNS issue on your servers. Also from this blog, it seems that the google proxy servers convert any (spaces) in filenames to
+
when creating new links. Try to rename all the assets to avoid any use of (spaces).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With