Skip to content

Instantly share code, notes, and snippets.

@keyboardcrunch
Forked from jdgregson/email-switch.html
Created February 8, 2021 17:36
Show Gist options
  • Save keyboardcrunch/71ec44fd506a59e547918c0715ea0285 to your computer and use it in GitHub Desktop.
Save keyboardcrunch/71ec44fd506a59e547918c0715ea0285 to your computer and use it in GitHub Desktop.
HTML which allows you to present different email content to Outlook and OWA/Outlook for iOS/Outlook for Android. See here for reference: https://twitter.com/jdgregson/status/1356444039445237760
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!--[if gte mso 9]><!-->
<meta http-equiv=3D"X-UA-Compatible" content=3D"IE=3Dedge">
<!--[if !mso]><!-->
<!--<!-->
<!--[if gte mso 9]><!-->
<h1>You're viewing this in one of the following:
<ul>
<li>Outlook Web App</li>
<li>Outlook for iOS</li>
<li>Outlook for Android</li>
<li>The "view in browser" feature</li>
</ul>
</h1>
<script>
<!--[if !mso]><!-->
</head>
<body>
<h1>You're viewing this in Outlook</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment