开发者

Android Email, CSS Media Queries, & Outlook Exchange

开发者 https://www.devze.com 2023-04-11 05:50 出处:网络
I am using the following embeddedtag and media query inside HTML email: <style type=\"text/css\">

I am using the following embedded tag and media query inside HTML email:

<style type="text/css">
@media screen and (max-device-width:800px) {
    /* styles */
}
</style>

I have a problem with this on the Android nati开发者_JAVA百科ve mail client (Froyo; testing on a Galaxy S, and a Galaxy S2):

  • When I send email to a Gmail account and check it on the email client, the media query works great.
  • When I send email to our company email addresses - which are run on a Microsoft Exchange Server (I believe Exchange 2010), the media query does not run at all.

I don't know how to view the source of the email on the phone, but it seems like the email's HTML is being modified by Exchange before it reaches the device. I would expect it to modify the HTML when viewing in Outlook or via Outlook Web Access, but I'm not sure why the version on the device device is getting modified, and if so, in what way it is modified.

Any suggestions? Anyone run into anything similar, or at least know how to "view source" of an email as it is stored on the device? (Once forwarded, it would be modified by the receiving email platform, right?)


I suspect this is probably a policy enforced by the server that all media is stripped out before being stored in a user's mailbox. This would be not unlike blocking certain attachment extensions, etc. Gmail doesn't have that problem because it doesn't have the same policies in place. The issue isn't the client so much as it is the Exchange server.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号