问题
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