iOS mail client doesnt render html email

对着背影说爱祢 提交于 2019-12-12 03:33:20

问题


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).

Thanks in advance


回答1:


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"}

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

Hope this helps someone!



来源:https://stackoverflow.com/questions/31272993/ios-mail-client-doesnt-render-html-email

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!