Setting Up Google App
Go to https://console.cloud.google.com/apis/credentials
If you don't have one, create a new project
Go to Library and enable GMAIL API
If you don't have it, configure the consent screen
Click Add or Remove Scopes and search gmail.send
Click on + CREATE CREDENTIALS and select OAuth client ID
Select "Web Application" as the type.
On Authorized redirect URIs add your xBit installation host + /about.php
(e.g., http://yourdomain.xbit/about.php
)
Copy the Client ID and Secret
Configuring in xBit
- Go to Admin > About/Settings
- Go to the E-Mail tab
- Select Enable SMTP and type GMAIL
- Complete ClientId and Secret
- Click Submit SMTP Settings
- Authorize Gmail
Setting up Azure/Office365 App
- Go to https://portal.azure.com/
- Select Microsoft Entra ID
- Click Add and select App Registration
- Complete the name, select
Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)
and on Redirect URI select Web and add your xBit installation host +/about.php
(e.g., http://yourdomain.xbit/about.php
)
- Copy the Client ID and Tenant ID
- Go to API Permissions and click Add a permission
- Select Microsoft Graph and Delegated permissions
- From OpenID select
"email"
and"offline_access"
- From SMTP select
"SMTP.Send"
- Click Add permissions
It should save and show the following:
- Go to Certificates and secrets and click on New Client Secret
- Set name and expiration date
- Save and copy the content of the Value column
Configuring in xBit
- Go to Admin > About/Settings
- Go to the E-Mail tab
- Select Enable SMTP and type Office 365
- Complete ClientId, Secret, and TenantId
- Click Submit SMTP Settings
- Authorize Office 365