我创建了一个电子邮件模板,除了图像之外,一切都正常工作。图像链接总是被打乱的。我试图搜索这个错误,得到的想法是我的服务器镜像可能不是公开的。所以我上传了我的图片到google drive上,打开了图片分享,并粘贴了链接作为src属性,但它仍然给我留下了损坏的图片。
<img align="center" alt="Image" border="0" class="center autowidth" src="https://photos.google.com/photo/AF1QipN7nO024WiqXwljlKtjBnAmYibqu-qbON2f-o6V" style="text-decoration: none; -ms-interpolation-mode: bicubic; height: auto; border: none; width: 100%; max-width: 142px; display: block;" title="Image" width="142"/>这是我在gmail中得到的结果链接
<img align="center" alt="Image" border="0" src="https://ci5.googleusercontent.com/proxy/2O2l92Xpr3J2mn0fQCZcsCj5_HgubYMC5Yjs126neCu8NpIeGbJhVtx5AgWQDBb1Rzucm9OyHEvAaV1764ZREH3uUB8GovbKgx4k2TrbLLCR9CHNFFTTb5L9wNibIDk=s0-d-e1-ft#https://photos.google.com/photo/AF1QipN7nO024WiqXwljlKtjBnAmYibqu-qbON2f-o6V" style="text-decoration:none;height:auto;border:none;width:100%;max-width:142px;display:block" title="Image" width="142" class="CToWUd">我该如何解决这个问题?
我在这里真正想要的是使用存储在我的google驱动器或google照片中的图片,而不是使用我自己网站的服务器。这有可能吗?
发布于 2021-06-15 12:16:23
我找到了一种非常简单和直接的方法。上传你的图片到一个图片托管网站(我使用的是imgur.com)。您可能需要创建一个帐户,然后上传图像,然后您将找到指向该图像的直接链接。在您的电子邮件模板中使用该链接,问题就解决了。
发布于 2019-12-13 19:28:31
这似乎是由缓存内容的google代理服务器造成的。快速搜索发现了以下内容:
Email thumbnail URL changed to googleusercontent.com in gmail
Gmail's new image caching is breaking image links in newsletter
那里提供了一些解决方案,可以为您工作。
https://stackoverflow.com/questions/59321507
复制相似问题