How to attach html file so that gmail's “view” option works
问题 I have a script that sends an email with an html attachment. When I select "view" in gmail I get text...however when I click on "download" instead of "view", then open it, it displays as it should. I think it's gmail related because I observe the exact same behavior from IE, FireFox(win/linux), Chrome(win/linux) I made a youtube video of here: http://www.youtube.com/watch?v=WkGyxcFQXS8 Am I doing something wrong? Thanks 回答1: Not all email clients support the <style> tag. Gmail is one of those