AMP for Email lets you create dynamic, interactive emails that update in real-time and allow users to take action without leaving their inbox.
Setting up AMP emails does require a few extra steps compared to traditional HTML email — but once you get the basics down, you'll unlock a powerful new way to engage your audience.
Before you can send your first AMP email, make sure you have:
For users, it means less friction — and more action — all without leaving their inbox.
You must include three versions inside your email:
Most ESPs that support AMP will help you configure this properly. Or you could create your own email handler to send AMP emails like I did.
Here is a very simple example that you can use as a boilerplate for your project.
<!doctype html>
<html ⚡4email data-css-strict>
<head>
<meta charset="utf-8">
<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.2.js"><script>
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
<style amp4email-boilerplate>body{visibility:hidden}</style>
</head>
<body>
<h1>Subscribe to Our Newsletter</h1>
<form method="post" action-xhr="https://yourdomain.com/subscribe">
<input type="email" name="email" required>
<input type="submit" value="Subscribe">
<div submit-success>
<template type="amp-mustache">
Success! Thanks for subscribing.
</template>
</div>
<div submit-error>
<template type="amp-mustache">
Oops! Something went wrong.
</template>
</div>
</form>
</body>
</html>
✅ Notice:
<!doctype html>
.<html>
tag includes ⚡4email.action-xhr
.amp-form
if it is in use.playground.amp.dev
allows you to send tests to your gmail accountamp.gmail.dev/playground
has an improved UX and gives detailed feedbackBetter yet, use one of my publicly available examples to test out on your own!
Before Gmail will render your AMP content, you must:
Getting started with AMP for Email may feel like a big leap, but once you send your first successful dynamic email, you'll immediately see the difference it can make in engagement and user satisfaction.
Start small, stay compliant — and get ready to rethink what email can do.