1

Im building a webmail client in RoR and using Gmail's API.

After receiving a response from Gmail's api for a multipart email, I was able to extract the text/html portion and display it in the browser correctly. Everything looks fine except all of the images are broken.

Upon inspecting the HTML, it shows <img src="cid:google_logo">. I understand that this is an inline image referencing the actual image from the attachments. But where and how do I load the attachments into the browser?

I've been looking everywhere and I cannot find a solution. Please help...

sono123
  • 51
  • 1
  • 6
  • Your google link shows unauthorized error. Host somewhere else – Mario May 10 '15 at 22:09
  • Look through the parts you get back from the response. Try using something like pry debugger so you can step through the response and inspect it. Off the top of my head there are parts with mimetype image/png or image/jpeg .. etc.. also there maybe a multipart mimetype. – Jaybeecave May 19 '15 at 04:39

0 Answers0