SCP has the ability to retrieve emails from any email account supporting the IMAP standard. When it retrieves emails, it stores them within SCP as incoming Email Messages, which can be viewed and reported on in the administrator. In addition to the body, from address, and IMAP folder, SCP also downloads and stores each of the email's attachments as Email Attachments. In addition, SCP can automatically associate each email with a matching Customer record (based on the email address), and with a matching Order (if the email's subject contains an order number).

In this document, we will go through the steps using Gmail as the provider. Any other email provider that supports IMAP can be used. IMAP is a standard used across the internet for connecting to email accounts and retrieving emails.

Gmail Account Set Up

  1. To get started, create an email account using Gmail. Follow the instructions from Google for creating a new email account: either a free account, or one within your Google for Business account.

  2. For connecting via IMAP, you must set up and turn on multi-factor authentication. This is a Google requirement for creating an App Password.

  3. Within the Google account, create an "App Password" to use to connect with. Sign in to your Google Account, go to Security, and search for or select App passwords. Copy the 16-character password that is generated for you.

SCP Email Account Set Up

  1. Once you have the above App Password from Google, you are ready to set up an Email Account in SCP to connect to it. Under Operations -> Notifications and Emails -> Email Accounts, click the plus icon to add a new Email Account.

  2. Enter the following values for the new Email Account:

    • Name: Enter any name to identify the new account

    • Code: You may leave blank and the system will generate the code from the name

    • Email Address: The new Gmail email address you created above

    • Provider: Gmail

    • Imap Host: For Gmail, enter imap.gmail.com

    • Imap Port: 993

    • Imap Tls Mode: Implicit TLS (Port 993)

    • Imap Username: Enter the new Gmail email address you created above

    • Auth Type: Passord

    • New Imap Password: Enter the 16-character App Password you created above.

    • Status: Active

  3. After creating the Email Account, test the connectivity by clicking Test Connection. Resolve any connection issues.

SCP Email Account Sync Job and Notification

The next step is to enable the Email Account Sync Job, which will tell SCP to automatically log into the email account you set up and download messages.

  1. Under Operations -> Automations and Jobs, find the Email Account Sync Job.

  2. Click into the Email Account Sync Job's Site Job Settings screen, and configure the job's settings:

    • Email Account Code: Enter the code value of the SCP Email Account you created above

    • Restrict To Folder/Restrict to Subject: Add values here if you only wish to pull down specific email messages matching the folder or the subject.

    • Match with Customer/ Match with Orders: Enable either or both of these settings to automatically associate the incoming email messages with an SCP customer or order. It matches up the customer based on the incoming message's "from" email address (matching with the user name), and it matches up the order based on if there is an order number in the email message's subject.

  3. On the Email Account Sync Job's details screen, enter a value for the "Next Fire Time" and activate the job in order to enable it. The job can be run manually without doing this, but will not run automatically until you do.

  4. Optionally, configure the EmailAccountSyncJobSummary notification, which sends out the results of each time the job runs:

    • Under Notifications and Emails -> Notifications, find the EmailAccountSyncJobSummary notification and go to its details.

    • To enable the notification, under Message Fields, add an email address to the "Tos" field. This is the email that will receive a summary of the sync job results.