gitlab-org--gitlab-foss/doc/integration/gitlab_buttons_in_gmail.md

29 lines
1.1 KiB
Markdown
Raw Normal View History

# GitLab buttons in Gmail
GitLab supports [Google actions in email](https://developers.google.com/gmail/markup/actions/actions-overview).
If correctly setup, emails that require an action will be marked in Gmail.
![gitlab_actions](gitlab_actions.png)
To get this functioning, you need to be registered with Google.
2015-04-27 00:24:09 +00:00
[See how to register with Google in this document.](https://developers.google.com/gmail/markup/registering-with-google)
2015-04-27 00:24:09 +00:00
To aid the registering with Google, GitLab offers a rake task that will send an email to Google whitelisting email address from your GitLab server.
2015-04-27 00:24:09 +00:00
To check what would be sent to the Google email address, run the rake task:
```bash
bundle exec rake gitlab:mail_google_schema_whitelisting RAILS_ENV=production
```
**This will not send the email but give you the output of how the mail will look.**
2015-04-27 00:24:09 +00:00
Copy the output of the rake task to [Google email markup tester](https://www.google.com/webmasters/markup-tester/u/0/) and press "Validate".
If you receive "No errors detected" message from the tester you can send the email using:
```bash
bundle exec rake gitlab:mail_google_schema_whitelisting RAILS_ENV=production SEND=true
```