CiviGmail Integration With Gmail

CiviGmail is a chrome extension for Gmail, which allows Gmail to directly interact with CiviCRM via OAuth2. Once authorized emails can be filed as activities in CiviCRM. Idea is to support same set of features like CiviOutlook, reusing its apis.

Features

Record emails from Gmail inbox against CiviCRM contacts

Use email address deduplication to attach emails to the correct contact including creation of a new contact if they don't exist.

Prompts for duplicate contacts so that user can select which ones they want to create the activity with.

Setting Up OAuth2 on Civi Site (Drupal)

Create a server. Go to admin/structure/oauth2-servers and create a server. Leave the default values in settings, they will be explained later.

Create a scope. Click the "scopes" link, and you will be taken to the scopes listing page. Make sure you have at least one scope with label as “civigmail_extension”. Description could be anything say “CiviGmail Scope”.

A client is an application requesting authorization from the resource owner (logged-in user on your website). In our its going to be CiviGmail user.

Client ID. This could be set to chrome extension ID “egjglhooblpbneakhiphjdicboojpamj”.

Client Secret. Set this to some key that you going to share with CiviGmail users. The Client ID and Client Secret can be thought of as the client username and password. The client id is considered public information while the client secret must be kept private at all cost.