Pergunta

I'm testing my schema button by sending to myself (I am overriding the "From" email header address with my gmail address to test from the server that sends the email). Both recipient and sender are my gmail email address.

The schema shows up when I view the original email, but I don't see any buttons in my inbox.

Here is the script tag I am sending as part of my HTML email template:

<script type="application/ld+json">
{
    "@context": "schema.org",
    "@type": "EmailMessage",
    "description": "User invited you to a test1.",
    "action": {
        "@type": "ConfirmAction",
        "name": "Accept",
        "handler": {
            "@type": "HttpActionHandler",
            "url": "http://localhost/?id=xxx"
        }
    }
}
</script>

Here is a screenshot of my inbox -- notice there is no "Accept" Gmail Action anywhere: enter image description here

Here is a screenshot of the email itself, also not "Accept Gmail Action anywhere:

enter image description here

Foi útil?

Solução

You need the sender to be your own email address and your emails to be signed with DKIM or SPF in order for Gmail to render the action. It seems like you are trying to "fake" your email address which is exactly what we need to prevent.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top