iOS邮件客户端不呈现HTML电子邮件 [英] iOS mail client doesnt render html email

查看:206
本文介绍了iOS邮件客户端不呈现HTML电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用MailChimp从我的Rails平台启动电子邮件.它仅使用具有内联样式且没有js的主体.除了iOS的本机邮件客户端外,它在所有Web客户端和移动客户端(iOS和Android)上均可正常显示.在iOS本机邮件客户端中提取电子邮件时,我可以看到该电子邮件大约50到100毫秒,然后它消失了,仅留下一个空白的空白页.看起来好像弹出窗口被阻止".内容本身是3个彩色的div,其中填充了文本和图像.任何人都经历过这样的事情吗?我已经在网上搜寻了(并将继续这样做).

Using MailChimp to fireoff emails from my rails platform. It uses only a body with inline styling and no js. It renders fine on all web clients and mobile clients (iOS and Android) except for iOS's native mail client. When pulling up the email in the iOS native mail client, i can see the email for about 50-100 ms, then it disappears, leaving just a white blank page. It looks as if its getting "pop up blocked". The content itself is 3 colored divs filled with text and images. Any one ever experience anything like this? I have scoured the web (and will continue to do so).

预先感谢

推荐答案

经过研究,我找到了答案.苹果的iOS邮件客户端在加载外部样式表方面并不大.实际上,如果您尝试在html中的任何位置包含html,它将关闭所有html.我有这行:

After some research I found the answer. Apples iOS mail client is not big on loading external style sheets. Infact, it shuts out all the html if you try to include that anywhere in your html. I had this line:

        %link{:rel => :stylesheet, :type => :"text/css", :href => "//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"}

当我拿出它时,一切正常,css以及全部!

When i took it out, everything worked, css and all!

希望这对某人有帮助!

这篇关于iOS邮件客户端不呈现HTML电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆