[英]Implementing newletter with jsp and gmail issues
I implemented newsletter with Spring3 and jsp. 我用Spring3和jsp实现了新闻通讯。
referencing post link : making newsletter(HTML) with SpringFramework3 引用帖子链接: 使用SpringFramework3制作新闻简报(HTML)
Now It works nice except on gmail, outlook. 现在,除了gmail和Outlook外,它的工作原理都不错。
I found that this issue is famous but there was no clear solution in web. 我发现这个问题很出名,但是网络上没有明确的解决方案。
I am suffered with src
attribute of image tag. 我遭受了图像标签的
src
属性的困扰。
Here is a original tag which is working on other mail client(?) 这是可在其他邮件客户端上使用的原始标签(?)
<img style="width:322px;height:196px; display:block;" src="http://localhost:8080/resources/portal/images/virtual/noimg02.jpg">
However, when I send it to gmail, it transferred like : 但是,当我将其发送到gmail时,它的传输方式如下:
<img style="width:322px;min-height:196px;display:block" src="https://ci5.googleusercontent.com/proxy/eC8FaWQmdUqkQoquMqW3NKl_u14NwS5bgKPb9_36kgfUc0t9FM8Rm9Q_BDvjN3flSnFJOU_CNW8vn8wjrtB0HNVWVk1i6y9dTIAaNa78zjki7Kl7XNqsKs1ThA=s0-d-e1-ft#http://localhost:8080/resources/portal/images/virtual/noimg02.jpg" class="CToWUd">
sorry for localhost:8080
, since we do not prepared ant development servers yet. 抱歉
localhost:8080
,因为我们还没有准备蚂蚁开发服务器。
How to prevent auto wrapping like that in gmail. 如何防止在Gmail中自动换行。
I have already change my Image options of gmail(allow external image link), but it does not work. 我已经更改了gmail(允许外部图像链接)的图像选项,但是它不起作用。
Thanks for your answer :D 谢谢你的回答:D
It found that google do some validation job. 它发现谷歌做了一些验证工作。 However, in my case, (my dev environment) network allows only internal access, so it can not show proper image.
但是,在我的情况下,(我的开发环境)网络仅允许内部访问,因此无法显示正确的图像。
I switched network from internal network to wifi, it works fine :DI hope this could be help to others. 我将网络从内部网络切换到wifi,效果很好:DI希望这对其他人有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.