在选择“下载完整邮件”之前,Html 电子邮件不会显示在 iPhone 邮件中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9323148/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Html Email doesn't display in iPhone mail until 'download full message' selected
提问by Glinkot
I have an email based reports, which have various embedded images and tables.
我有一个基于电子邮件的报告,其中包含各种嵌入的图像和表格。
All display fine on iPhone. However, once they get beyond a certain (quite limited) size, they display as raw text.
所有在 iPhone 上显示良好。但是,一旦它们超过某个(相当有限的)大小,它们就会显示为原始文本。
To view the email properly the user must scroll to the bottom and tap 'download full message' before it looks like it should.
要正确查看电子邮件,用户必须滚动到底部并在看起来应该之前点击“下载完整邮件”。
Is there any way to encourage iOS to download the entire message so it displays as Html immediately?
有什么方法可以鼓励 iOS 下载整个消息,使其立即显示为 Html?
Thanks.
谢谢。
采纳答案by thiesdiggity
Here is a fix, it has to do with the number of characters before the closing </head> tag.
这是一个修复,它与结束 </head> 标签之前的字符数有关。
Email on Acid - Ensure entire email is downloaded on the iOS device
Very odd bug but EOA appears to have found a solid fix.
非常奇怪的错误,但 EOA 似乎找到了可靠的修复方法。
回答by Dan Blows
I played around with this - on a 3G network, and on Wifi, with different size emails. My conclusion - it's not a fixed size limit, but something a bit more intelligent.
我玩过这个 - 在 3G 网络和 Wifi 上,使用不同大小的电子邮件。我的结论 - 这不是一个固定的大小限制,而是更聪明的东西。
iOS detects your current network speed, the speed of the server from which any resources are being served and calculates the total size of the email.
iOS 会检测您当前的网络速度、提供任何资源的服务器的速度并计算电子邮件的总大小。
If it thinks rendering the email is going to take what it considers a long time (I haven't been able to work out an exact number), then it gives you that message.
如果它认为呈现电子邮件将花费它认为的很长时间(我无法计算出确切的数字),那么它会为您提供该消息。
So how do you encourage iOS to display the whole email?
那么你如何鼓励 iOS 显示整个电子邮件呢?
- Short messages, more text, fewer images
- Images compressed as much as possible, and served from a quick server (ideally a geocached CDN)
- 短消息,更多文字,更少图片
- 图像尽可能压缩,并从快速服务器(理想情况下是 geocached CDN)提供
Look into media queries for how you can do some eye grabbing stuff on iOS without needing to send massive images.
查看媒体查询,了解如何在 iOS 上做一些吸引眼球的事情,而无需发送大量图像。
回答by AlecRust
On Quora it's suggested this is a 50Kb limit , although I'd like to test that:
在 Quora 上建议这是一个 50Kb 限制,尽管我想测试一下:
http://www.quora.com/iOS/Why-do-some-email-messages-on-an-iPhone-come-in-Partially-Downloaded
http://www.quora.com/iOS/Why-do-some-email-messages-on-an-iPhone-come-in-Partially-Downloaded
No mention of whether it can be controlled by the email that's being received, I think it's unlikely.
没有提到它是否可以通过收到的电子邮件进行控制,我认为不太可能。
There's also a discussion about this on the Apple Support Communities, which doesn't seem to come to a resolution:
Apple 支持社区上也有关于此问题的讨论,但似乎没有解决: