Skip to content

Instantly share code, notes, and snippets.

@jdgregson
Last active January 9, 2022 05:25
Show Gist options
  • Save jdgregson/4e26c37d14d1bba98eabd6800ba6ed18 to your computer and use it in GitHub Desktop.
Save jdgregson/4e26c37d14d1bba98eabd6800ba6ed18 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