GMail (XOAUTH) Configuration

Setting Up Google App

Go to https://console.cloud.google.com/apis/credentials

If you don't have one, create a new project

image.png

Go to Library and enable GMAIL Api

image.png

image.png

image.png

If you don't have it, configure the consent screen

image.png

image.png

image.png

Click Add or Remove Scopes and search gmail.send

image.png

image.png

Click on + CREATE CREDENTIALS and select OAuth client ID

image.png

Select "Web Application" as the type

On Authorized redirect URIs add your xBit installation host + /about.php (http://yourdomain.xbit/about.php for example)

Copy the Client ID and Secret

gmail-oauth.jpg

Configuring in xBit

Go to Admin -> About/Settings

Go to the E-Mail tab

Select Enable SMTP and type GMAIL

Complete ClientId and Secret

image.png

Click Submit SMTP Settings
Authorize Gmail