Images not displayed for Gmail

前端 未结 1 1920
不思量自难忘°
不思量自难忘° 2020-12-30 07:44

Recently Google announced that Gmail will load external images using a proxy for safety purpose. This causing an issue for my application while displaying images in gmail.

相关标签:
1条回答
  • 2020-12-30 08:02

    The problem here is the URL you are using for your mailings. From the information provided, it appears to be:

    http://localhost:8080/email/thread/1301/images/correct
    

    This is a URL that refers to a file on your local computer. However, that URL - rather than the actual image - is being passed to Google's proxy to retrieve. Google has no way to access that URL from their proxy, and thus the image will not appear.

    The solution is to ensure that the path you are using is one accessible outside of your local network; for example, by hosting the images on an externally-facing server.

    0 讨论(0)
提交回复
热议问题