Gmail's new image caching is breaking image links in newsletter
I've got some automatic emails that are sent out upon signup completion for my site.
Until recently, they worked fine. Now Google's new system is rewriting the images and storing them in it's cache (supposedly)
However, Google's new rewriting of my image links are completely breaking them, giving a 500 error and a broken link image.
Lets say my normal image url is:
Google is rewriting this to:
However, there is nothing at that URL.
So, either there is something wrong with the links that are being created by Google or the images are just not being uploaded to the googleusercontent server, but I have no idea how to solve the issue.
Im using PHP, the phpmailer library and a Ubuntu server on Amazon EC2, but Im not sure that is related to the issue.
Create your Google Account, A single username and password gets you into everything Google (Gmail, Chrome, YouTube, Google Maps). Set up your profile and preferences just the way Gmail is a free email service developed by Google. Users can access Gmail on the web and using third-party programs that synchronize email content through POP or IMAP protocols. Gmail started as a limited beta release on April 1, 2004 and ended its testing phase on July 7, 2009.
E-mail - Sign in, Sign in. Use your Google Account. Email or phone. Forgot email? Type the text you hear or see. Not your computer? Use Guest mode to sign in privately. Gmail is an easy to use email app that saves you time and keeps your messages safe. Get your messages instantly via push notifications, read and respond online & offline, and find any message quickly. With the Gmail app you get: • An organized inbox - Social and promotional messages are sorted into categories so you can read messages from friends and family first. • Less spam - Gmail
I was having a similar issue, but it was caused by the length of the URL. Google generates the following URL when caching an image from gmail:
The hash generated is based on the URL of the image, but the size will vary based on characters used. I ran several tests with different sized URLs, and found the cached image would fail to load consistently (400/Invalid Request) if the hash exceeds 2076 characters in length (close to 2048 bytes + meta? not sure).
Again, the image URL could generate a hash that exceeds this many characters at ~1000 special characters, or 1500+ simple characters. If the hash exceeds 2076 characters in length, the request fails.
I realize this is an old post, but hopefully this helps other devs scouring Google
Gmail, Gmail is an easy to use email app that saves you time and keeps your messages safe. Get your messages instantly via push notifications, read and respond One account. All of Google. Sign in with your Google Account Enter your email. Find my account
I know this is an old question but the same thing happened to me. When I checked my access logs this is what I found -
www.example.ca 220.127.116.11 - - [10/Apr/2014:17:57:18 -0400] "GET /newsletters/Apr10_2014/cad/cad2.jpg HTTP/1.1" 403 457 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:18.104.22.168) Gecko/2009021910 Firefox/3.0.7 (via ggpht.com GoogleImageProxy)"
You can see that my server was blocking the GOOGLEIMAGEPROXY giving it a 403 Forbidden reply. I decided to check my .htaccess and sure enough I was blocking the term PROXY. After removing the term, the images appear just fine now on Gmail. Hope that helps.
Create a Gmail account - Gmail Help, To sign up for Gmail, create a Google Account. You can use the username and password to sign in to Gmail and other Google products like YouTube, Google Gmail blocks 99.9% of dangerous emails before they reach you. If we think something seems phish-y, you’ll get a warning. Get started with Gmail. Create an account.
HTTPS image locations do cache. Several of our production environments have no problems with gmail proxying image locations using a HTTPS uri. I could see gmail ignoring your content if the SSL certificate is invalid in some way.
Gmail Help, How can we help you? Popular articles. Sign in to Gmail · Add or remove inbox categories & tabs in Gmail · Change or reset your password · Create a Gmail The official Gmail app brings the best of Gmail to your iPhone or iPad with real-time notifications, multiple account support and search that works across all your mail. With the Gmail app, you can: • Undo Send, to prevent embarrassing mistakes • Switch between multiple accounts • Get notified of n…
Gmail, The official Gmail app brings the best of Gmail to your iPhone or iPad with real-time notifications, multiple account support and search that The ease and simplicity of Gmail, available across all your devices. Gmail's inbox helps you stay organized by sorting your mail by type. Plus, you can video chat with a friend, ping a colleague, or give someone a ring - all without leaving your inbox.
How Gmail Happened: The Inside Story of Its Launch 10 Years Ago , Within Google, Gmail was also regarded as a huge, improbable deal. It was in the works for nearly three years before it reached consumers; For example, select Change profile image to add a photo that will be visible to other Gmail users. If you want to change the colors and layout of the Gmail interface, select Choose a theme . If you have another email account, select Import contacts and mail to link it to your new Gmail account.
Gmail, A single username and password gets you into everything Google (Gmail, Chrome, YouTube, Google Maps). Set up your profile and preferences just the way you like. Switch between devices, and pick up wherever you left off.