How test your AMP emails in Gmail

Before you send a AMP-powered dynamic email, you can test it to verify its contents and behavior.

There are two options for testing your dynamic emails in Gmail:

  1. Use Gmail’s AMP for Email Playground to draft AMP emails, see a live preview, and have your emails sent to your own Gmail account for testing.
  2. Navigate to Gmail Settings > General > Dynamic email and click Dynamic email development. This opens a dialog where you can whitelist email addresses that can send you dynamic emails for testing purposes. The AMP version of emails sent from the listed addresses to your account are rendered, even if the account is not registered with Google. This lets you test your dynamic emails on your own accounts before registering to ensure they are working as expected.

Delivery requirements

For your AMP email to be delivered to any account, the email must meet the following conditions:

  • The email must pass DKIM authentication, matching the exact domain of the sender email address (the Fromheader). The email must also pass SPF and DMARC authentication. See Check if your Gmail message is authenticated for more details.
  • The email must contain a fallback HTML version (text/html) or plain text version (text/plain) in addition to the AMP MIME part (text/x-amp-html). This fallback version is displayed in situations where the AMP MIME part cannot be displayed, such as when the mail client is offline or 30+ days after the email was received by Gmail.
  • The AMP MIME part must contain a valid AMP document.
  • The URLs used in <amp-list> and <amp-form> must:
    • Have a protocol of https.
    • Match the sender domain’s zone. For example, <amp-list src="https://a.b.example.co.uk/stuff">for sender: [email protected].
  • The email should include the AMP MIME part before the HTML MIME part.
  • The AMP MIME part must be smaller than 100KB.
One thought on “How test your AMP emails in Gmail

Leave a Reply

Your email address will not be published. Required fields are marked *