Configure an incoming email account for Gmail
If you use Google Gmail for your incoming email, you can create a new incoming email account in WHD and link this account to your Gmail account.
Configure a new email account
This configuration requires a unique client ID and secret password that you generate in the Google Developers Console and enter into the incoming mail account screen. After you complete and test the configuration, WHD can access the Gmail account using Open Authentication (OAuth) 2.0, retrieve the incoming email, and generate a new ticket using the data in the email.
To configure a new incoming email account:
- Set up a new project in the Google Developers Console.
- Create a new WHD incoming email account.
- Generate the client ID and client secret credentials.
- Enter the Gmail login credentials into the incoming mail account.
- Test the email connection.
- Verify that WHD creates an email ticket.
- (Optional) Configure your Google account with two-factor verification.
Set up a new project in the Google Developers Console
- Locate the email address of the Gmail account you will use for your incoming email account.
-
Log in to the Google Developers website at:
- Log in using your Gmail credentials.
- If you agree to the Terms of Service, select the checkbox and then click Agree and Continue.
- Configure the OAuth consent.
- Click the OAuth Consent tab, and then click Create Project.
- Add a name for your project, and then click Create.
For the user type, select Internal or External based on your project needs.
Internal is only available to G Suite users, while External can be selected by any user.- Click Create.
- Add the project details (such as app name, email, and so on).
- Click Save and Continue.
Create a new WHD incoming mail account
-
Locate the Gmail address you will use for your incoming mail account.
You can create a new Gmail account at gmail.com. - Open a new window in your web browser.
-
Log in to Web Help Desk as an administrator.
- Click Setup > General > Options.
-
In the Force HTTPS field, select Always and then click Save.
- Click Setup > email > Incoming Mail Accounts.
- Click New.
-
Select the Enable email Tickets checkbox.
-
In the Default row, click Make Default.
-
In the email Address field, enter your Gmail email address.
-
In the Authentication Mode field, select OAuth.
Two new fields display:
- Client ID
- Client Secret
These fields will store the credentials you obtain from the Gmail Developers Console.
Generate the client ID and client secret credentials
- Return to the Google Developers Console.
-
Navigate to the Credentials page.
In the left menu, click APIs & Services > Credentials.
- Click Create Credentials and select OAuth client ID.
- Click the Application type drop-down menu and select Web application.
-
In the Name field, enter the name of the OAuth 2.0 client. For example:
WHD
- Click ADD URI.
-
Enter the URI that connects your Gmail account to WHD using the following format:
https://localhost:8443/helpdesk/oauth-google-redirect
where:
localhost
is the IP address or hostname of your WHD server8443
is the secure HTTPS port to your WHD server
-
Press Return and then click Create.
The OAuth client created window displays with the client ID and client secret.
Enter the Gmail login credentials into the incoming mail account
- Return to the Google Developers Console.
- Locate the OAuth client created window.
- In the Your Client ID field, click the Copy icon in the right corner of the field to capture the client ID credentials.
- Return to the new WHD incoming email account page.
-
Paste the credentials into the Client ID field.
- Return to the OAuth client created window.
- In the Your Client Secret field, click the Copy icon in the right corner of the field to capture the client secret credentials.
- Return to the new WHD incoming email account page.
-
Paste the credentials into the Client Secret field.
-
Click Authorize.
You are redirected to the Google Authentication page. This page indicates that the app is not verified by Google.
- Click Advanced, and then click Go To WebHelpDesk.
- In the Grant WebHelpDesk permission pop-up screen, click Allow.
-
In the Confirm your choices screen, click Allow.
The new incoming mail account page displays. In the Client Secret field, Authorized displays with a green indicator.
-
Click the Request Type drop-down menu, select Email/Outlook, and then click Save.
The new incoming email account is linked with your Gmail account.
Your Gmail email address displays in the top right corner of the screen.
Test the email connection
- Open Microsoft Outlook and create a new email message.
- In the To field, enter your Gmail email address.
-
In the Subject field, enter:
Google OAuth Test email
- Click Send.
- Return to the Google APIs and Services screen.
- In the top right corner of the screen, click the Google Apps icon and select Gmail.
- Verify that you received the Test email.
- Sign out of your Gmail account.
Verify that WHD creates an email ticket
- Return to the WHD incoming mail account screen.
-
In the toolbar, click Tickets.
-
Click the Search Tickets tab.
-
In the Basic Search tab, click Search.
-
Locate and click the ticket that includes Test in the Request Detail field.
-
Verify that the ticket details section contains the correct information.
(Optional) Configure your Google account with two-factor verification
To protect your Gmail account from unauthorized users, SolarWinds recommends setting up two-factor verification (also known as two-step verification) to access your Gmail account. This method adds an additional layer of security to your Google account in case your password is stolen.
After you set up two-factor authentication, you can sign in to your Google account using your password and cell phone.
Set up two-step verification in your Google account
-
Open a web browser and navigate to myaccount.google.com.
-
Log in to your Google account as the account administrator.
The administrator is the employee who manages Google services or devices in your organization. If your Gmail account ends in @gmail.com, no administrator manages your account. It is a free Google account that you can manage yourself. -
In the left navigation menu, click Security.
(Screenshot property of © 2022 Google LLC)
-
Under Signing in to Google, click 2-Step Verification.
-
Click Get Started.
-
If prompted, re-enter your password, and then click Next.
-
Follow the prompts on your screen to set up 2-step verification.
-
Enter your cell phone number.
(Screenshot property of © 2022 Google LLC)
Google will use this phone number for account security. Do not use a Google voice number.
-
Select Text message or Phone call to receive the verification code, and then click Next.
(Screenshot property of © 2022 Google LLC)
-
Enter the code you received from Google in the corresponding field, and then click Next.
(Screenshot property of © 2022 Google LLC)
-
Click TURN ON to enable 2-step verification.
(Screenshot property of © 2022 Google LLC)
-
-
Click the Back arrow in the top left center of the screen.
-
Set up your App password. This password allows you to sign in to your Google account from apps and devices that do not support 2-step verification.
-
Click App Passwords.
-
Under App passwords, click the Select App drop-down menu and select Mail.
(Screenshot property of © 2022 Google LLC)
-
Click the Select Device drop-down menu and select Windows Computer.
(Screenshot property of © 2022 Google LLC)
-
Click Generate.
-
Under Generated app password, copy the 16-digit code to a Notepad text file. You will need this password in a later step.
(Screenshot property of © 2022 Google LLC)
Save this password to a secure location. This password grants complete access to your Google account. -
Click Done.
-
Log out of your Google account.
-
Configure your incoming mail account
-
Log in to Web Help Desk as an administrator.
-
Click Setup > email > Incoming Mail Accounts.
-
In the email Account column, click your incoming Gmail email account.
-
Copy and paste the 16-digit app password from your text file to the Password field.
-
Click Save.
Configure your outgoing mail account
-
Click Setup > email > Outgoing Mail Accounts.
-
In the Outgoing Mail Accounts column, click your outgoing Gmail email account.
-
Copy and paste the 16-digit app password from your text file to the SMTP Password field.
-
Click Save.