Skip to content

Instantly share code, notes, and snippets.

@MichaelEvans
Created May 21, 2013 20:36
Show Gist options
  • Save MichaelEvans/5623037 to your computer and use it in GitHub Desktop.
Save MichaelEvans/5623037 to your computer and use it in GitHub Desktop.
Test email with Schema for Gmail
<html>
<head>
<title>Did you enjoy Iron Man?</title>
<script type="application/ld+json">
{
"@context": "schema.org",
"@type": "EmailMessage",
"action": {
"url": "http://www.youtube.com/watch?v=NPoHPNeU9fc"
},
"description": "Watch the 'Avengers' movie online"
}
</script>
</head>
<body>
<p>
If you enjoyed Iron Man, please watch the Avengers Trailer!
</p>
</body>
</html>
@MichaelEvans
Copy link
Author

I also tried adding a name attribute as part of the Action, but it didn't change the result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment