# Integrate ViewActions/One-Click Actions schemas into Discourse Emails

**URL:** <https://meta.discourse.org/t/integrate-viewactions-one-click-actions-schemas-into-discourse-emails/27056>\
**Category:** Feature\
**Tags:** email\
**Created:** [2015 年 4 月 1 日午前 8:27 UTC](https://meta.discourse.org/t/integrate-viewactions-one-click-actions-schemas-into-discourse-emails/27056 "2015-04-01T08:27:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Moter8](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moter8/32/120941_2.png) [@Moter8](https://meta.discourse.org/u/Moter8)\
**Post date:** [2015 年 4 月 1 日午前 8:27 UTC](https://meta.discourse.org/t/integrate-viewactions-one-click-actions-schemas-into-discourse-emails/27056/1 "2015-04-01T08:27:54Z")

</div>

**tl;dr: Buttons that link you to a Discourse post**

Continuing the discussion from [Make activating an Account Gmail-compatible](https://meta.discourse.org/t/make-activating-an-account-gmail-compatible/26024/3):

> [@Make activating an Account Gmail-compatible](https://meta.discourse.org/t/make-activating-an-account-gmail-compatible/26024/3):
>
> [Having a] similar ViewAction button for View on $site\_name [encourages email users to get on the site].

> [@Make activating an Account Gmail-compatible](https://meta.discourse.org/t/make-activating-an-account-gmail-compatible/26024/4):
>
> Having a similar button to these “View Issue” ones from Github would be absolutely great

So anyway, Github emails come with some extra html that makes action buttons appear on GMail and in Inbox, possibly even elsewhere but I’m not aware of any. They look like this:

[![](https://global.discourse-cdn.com/meta/original/3X/3/3/333ffb5cb8d342bf4e3992d1f59469ea5d9692ee.png) ](https://i.imgur.com/z68ltBd.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/8/0/800144db94b827909a4ef8c6d9d2645b7dd2ac2e.png)

```html
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/syncthing/syncthing/issues/1519#issuecomment-88384950"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

```

```html
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/BuildAPC/BuildAPC-docs/pull/46#issuecomment-88387645"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

```

So in what I could figure out, the itemprop name and the description are not visible at all on GMail but the corresponding string do appear if you Ctrl+F for them on the page source.

Inbox is even weirder as the `itemprop="description"` string is visible on the Issue email but not on the Pull Request one. Possibly caused by the mention.

Would be pretty 🔥 🔥 🔥 if Discourse would use this schema/code/whatever too!

---

_[View the full topic](https://meta.discourse.org/t/integrate-viewactions-one-click-actions-schemas-into-discourse-emails/27056)._
