Google (Account-Level Emails) – Setup

Enabling the Google Integration in SELMA allows you to use your organisation’s Google mailbox(es) for emailing directly in SELMA. As such, emails sent from within SELMA are stored in the mailbox’s ‘sent’ folder as well.

Note: The below instructions serve as a guide only – please ask your IT Team/Provider about what’s best for your organisation.

Google Cloud Console Setup

For this to work we need to create a service account and configure domain-wide delegation in Google Cloud Console.

1. Create/Select Project

Please go to https://console.cloud.google.com and either create a new project or select an existing one for your organisation.

2. Enable Required APIs

Navigate to “APIs & Services” > “Library” and enable the following API:

  • Gmail API (required for sending emails)

3. Create Service Account

  1. Go to “APIs & Services” > “Credentials”
  2. Click “Create Credentials” > “Service Account”
  3. Fill in the service account details:
    • Service account name: Something like “SELMA Email Integration”
    • Service account ID: Will be auto-generated
    • Description: Optional description for identification
  4. Click “Create and Continue”
  5. Skip the optional steps (roles and user access) and click “Done”

4. Generate Service Account Key

⚠️ Important: Service account keys are sensitive credentials. Store them securely and rotate them regularly.

  1. Click on the newly created service account name
  2. Go to the “Keys” tab
  3. Click “Add Key” > “Create new key”
  4. Select “JSON” format
  5. Click “Create” – the JSON file will download automatically
    • You may be prompted to enable service account keys at this point – follow the steps provided by Google to do so
  6. Save this file securely – you’ll need to add it’s contents to SELMA later

5. Prepare to Enable Domain-Wide Delegation

  1. Still in the service account settings, go to the “Details” tab
  2. Note the “Unique ID”/Client ID (numeric value) – you’ll need this for the next step

Google Workspace Admin Setup

⚠️ Prerequisites: You must be a Google Workspace administrator to complete these steps.

6. Authorise Service Account for Domain-Wide Delegation

  1. Go to Google Workspace Admin Console
  2. Navigate to “Security” > “Access and data control” > “API Controls” > “Domain-wide Delegation”
  3. Click “Add new”
  4. Enter the Client ID from step 5 above
  5. Add the following OAuth scope: https://www.googleapis.com/auth/gmail.send
  6. Click “Authorise”

SELMA Configuration

7. Configure Integration in SELMA

  1. Go to SELMA Settings (cog top-right) → Integrations
  2. Find the Google integration and click “Configure”
  3. Expand the “Account-Level Configuration” section
  4. Fill in the following fields:
    • Project ID: From your Google Cloud Console project (also provided in the JSON file you downloaded earlier)
    • Service Account JSON: Paste the content from the JSON file from earlier in here exactly as-is
    • Workspace Domain: Your organisation’s Google Workspace domain (e.g. company.com)

8. Configure Email Addresses

  1. In the “Email Setup” section, add the email addresses you want to send from
  2. These should be valid email addresses in your Google Workspace domain
  3. Click “Validate” to test the connection
  4. Save the configuration

9. Test the Integration

  1. Navigate to any email function in SELMA (e.g. student communication)
  2. Look for the new “From” dropdown field
  3. Select one of your configured email addresses
  4. Send a test email to verify functionality

Important Notes

  • Security: Service account keys provide powerful access. Store them securely and rotate regularly
  • Domain-wide delegation: This gives the service account access to send emails on behalf of any user in your domain
  • Email validation: SELMA will test each configured email address to ensure the service account can access it
  • Sent items: Emails sent through SELMA will appear in the sender’s Gmail “Sent” folder

Done! ✅

The integration is now fully set up and you’ll have a new ‘From’ field wherever emails can be sent from in SELMA with your organisation’s email addresses as options.

Troubleshooting

  • “Access denied” errors: Verify domain-wide delegation is configured correctly
  • “Invalid credentials” errors: Check that the service account JSON is valid and uploaded correctly
  • Email validation fails: Ensure the email addresses exist in your Google Workspace domain

Related Articles

Cloud Assess

Initial Setup Navigate to Settings (Cogwheel icon), select Integrations, and click Configure under Cloud Assess. Configuring Keys and Connection To set up the Cloud Assess integration, enter the required URL and keys. If needed, contact SELMA or Cloud Assess support for assistance. Understanding the Configuration Screen The configuration screen displays a log of all transactions …

Xero Integration Setup

The SELMA-Xero integration enables seamless synchronisation of financial data between SELMA and Xero. This integration allows you to automatically create and manage invoices, sync contacts, and track payments across both systems. Setup & Configuration 1. Connect to Xero This is the first step to establish the integration between SELMA and Xero. 1. Click “Connect to …

Xero Integration Guide

The Xero integration allows you to seamlessly connect your accounting workflow with Xero. This integration enables automatic syncing of contacts, products, and invoices between your SELMA and Xero. If you would like to have integration with Xero enabled, please contact our support team. Key Features Contact Synchronisation: Automatically map your payers with Xero contacts by …

Microsoft 365 (Account-Level Emails) – Setup

Enabling the Microsoft 365 Integration in SELMA allows you to use your organisation’s Microsoft mailbox(es) for emailing directly in SELMA. As such, emails sent from within SELMA are stored in the mailbox’s ‘sent’ folder as well. Note: The below instructions serve as a guide only – please ask your IT Team/Provider about what’s best for …