flarum / issue-archive

0 stars 0 forks source link

Add a Go-To Action to community emails #90

Open therealsujitk opened 3 years ago

therealsujitk commented 3 years ago

Feature Request

It would be cool to add a Gmail Go-To Action to the community emails that users receive like the image below.

Preview

Implementation

Implementing this would require adding the code given below to the email body.

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "EmailMessage",
    "potentialAction": {
        "@type": "ViewAction",
        "name": "View Discussion",
        "url": "https://discuss.flarum.org/d/27394"
    },
    "description": "Flarum 1.0.0 Released"
}
</script>

The url and description would vary.

Source: Go-To Actions | Email Markup | Google Developers

askvortsov1 commented 3 years ago

For this we'd first need HTML emails, which is a whole separate issue.