We will first look at setting up Microsoft email accounts, followed by Google Gmail accounts toward the end of this section. It is important to note that this configuration must be completed prior to setting up user email accounts, which is covered in the next section of this guide.

It is highly recommended that an IT-savvy staff member or IT consultant perform these prerequisite steps. The Microsoft/Google settings and button locations change frequently, so there may be slight differences in what you see in this section and what you see in your Microsoft/Google account. We are happy to connect with you and walk you through this process, just send an email to support@tourtools.com to request a meeting.

Setup for Microsoft Office 365 Email Accounts

This section is based on this Microsoft article and has been adapted for use with TourTools in the instructions below. The Microsoft settings and button locations change frequently, so there may be slight differences in what you see in this section and what you see in your Microsoft account.

Prerequisites

To register your app in Microsoft Entra ID, you need a subscription to Office 365 and a subscription to Azure that has been associated with your Office 365 subscription.

Use the Azure Portal to register your application in Microsoft Entra ID

  • After you have a Microsoft tenant with the proper subscriptions, you can register your application in Microsoft Entra ID.
  • Sign into the Azure portal , using the credential of your Microsoft tenant that has the subscription to Office 365 you wish to use. You can also access the Azure Portal via a link that appears in the left navigation pane in the Microsoft 365 admin center.
  • In the left navigation pane, select Microsoft Entra ID (1).

On the Microsoft Entra ID page:

  1. Select Manage
  2. Then select App registrations (2), and then select New registration (3).

A new page appears for you to start the registration of your app.
On the Register an application page, complete the following things:

  1. Name your app.
  2. Choose who can use the app and access the API (Single Tenant).
  3. Provide a redirect URL for user redirect after authentication (https://www.tourtools.com/auth/).
  4. Click Register to register the new app.

Generate a new key for your application

Keys, also known as client secrets, are used when exchanging an authorization code for an access token.

  1. Click on Certificates & secrets
  2. Click +New client secret
  3. Add description
  4. Set Expires to 24 months
  5. Click Add
  6. Copy the Secret Value and paste somewhere safe to use later in the process as well as to store (secret will not be available after setup is complete)

Specify the permissions your app requires to access

  1. Click on API Permissions from the navigation menu
  2. Click +Add a permission
  3. On the side pane, click on Microsoft Graph

Delegated Permissions

Click on Delegated permissions
Begin typing the name
You will need 4 Delegated permissions for this API

  1. Begin typing in the Select permissions field and the permissions will appear.
  2. Click the checkbox to select the permissions:
    a. Mail.Send
    b. Mail.Send.Shared
    c. offline_access
    d. User.Read
  3. When you have selected all of the permissions, click Add permissions
  4. Check to make sure you have the same permissions as appear in this image:
  5. Then click Grant admin consent for (your Tenant name)

Expose an API

  1. Click Expose an API menu item
  2. Click +Add a scope. In the side pane:
  3. Leave the Application ID URI as assigned and press Save and continue
  4. Fill in the fields as they appear in the diagram below
  5. Scope name: sendMail
  6. Who can consent? Admin only
  7. Admin consent display name: Send mail on behalf of User
  8. Admin consent description: Allows the app to send mail from users’ Microsoft 365 accounts
  9. User consent display name Send Mail on your behalf
  10. User consent description Allows the app to send mail from your Microsoft 365 accounts
  11. Click Add scope

Add a client application

Go to overview and copy the Application (client) ID and the Directory (tenant) ID to a separate document to be used in the next step and later in the process.
Go back to Expose an API
Below Add a scope, click +Add a client application
On the side bar, paste the Client ID
Check checkbox beside the Authorized scope that appears
Click Add application (bottom of page)

All information required for configuring email within TourTools has now been gathered. Next, go back into TourTools and in the top navigation bar, click on Settings > System Settings > Email & Integrations > and click on the Email tab.

  1. Select O365
  2. Enter Application (client) ID in Client ID
  3. Enter Secret in Client Secret
  4. Enter the Redirect URI: http://tourtools.com/auth
  5. Enter your Tenant ID in Tenant
  6. Check to see that authURL matches exactly (no spaces or returns): https://login.microsoftonline.com/<>/oauth2/v2.0/authorize?client_id=<>&scope=Mail.Send offline_access&response_type=code&redirect_uri=<>
  7. Check to see that accessTokenURL matches exactly (no spaces or returns): https://login.microsoftonline.com/<>/oauth2/v2.0/token

TourTools Email API Connection

Using the Microsoft Graph API with the configuration above, a Microsoft 365 (Azure) administrator can authenticate all users of TourTools in the same 365 account.

  1. Go to Settings > Business Settings > Staff Members
  2. Select the email address of an administrator of your Microsoft 365 (Azure) account by pressing the arrow beside the user name
  3. In Staff Details at the bottom right, select/add an Email account and press the arrow button (or click Add Account)
  4. Verify or add the From email address
  5. Click O365
  6. Click Connect
  7. You will be brought to the Microsoft Authorization page where you may consent on behalf of your organization
  8. Click Accept
  9. You will be brought to the redirect page letting you know that your connection is successful.
  10. Click CONNECT at the bottom of the window
  11. You’re all set!

NOTE: If you receive an error message, when requesting permission, wait 15 minutes and try again as there can be a delay with the setup of the API. If problems persist, please contact TourTools support

Managers should go through all Staff records and add email accounts for the team (just ADD the authorized email account addresses – the user will authenticate and set up the account and email signature as outlined in the next section.

Setup for Google Gmail Accounts

We are currently updating the Google/Gmail instructions, please send an email to support@tourtools.com to request a meeting and we will assist you with the preliminary setup.

Last modified: January 18, 2025

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Please do not use this for support questions.
For customer support, please contact us here.

Post Comment