Gmail integration test
1. FIRST LINE Platform Setup
If you have already bound with your own Gmail account, but have not followed the steps of "Google Authentication Dedicated Mailbox" to set it up, don't worry. Just follow the steps below. After creating a dedicated Google authentication mailbox, go into your Gmail account and resend the verification email to this newly created dedicated mailbox.
To comply with Google's security requirements and ensure that verification emails can be successfully received for integration, you need to add a new one in the systemdedicated email accountfor verification purposes.
It is recommended to clearly name this mailbox (for example: "Google Authentication Dedicated Mailbox") for easier identification and management later.

In the "Your email address" field under "Set receiving email address", enter thesystem default email address.
This setting means allowing Google to send the verification emaildirectly to the system default mailbox, to complete the subsequent integration process.

The SMTP settings actuallydo not involve sending mail functionality, are only used to receive verification emails, so there is no need to set real, usable sending information. You can fill in any correctly formatted email address (for example:
xxxx@xxxx.com) to complete the setup.

2. Gmail Service Setup
Next, let's go back to Gmail to configure it:
After opening Gmail, click thegear icon (Settings), then click "See all settings" to enter the relevant settings page.

On the Gmail settings page, select "Forwarding and POP/IMAP" tab, then click "Add a forwarding address".
Then enter the FIRST LINE system email address, for example:
xxxx@tenant.firstline.cc
After that, follow the prompts to verify and confirm.


After completing all the steps, the FIRST LINE system will later receive a verification email from Google. When the settings appear as shown in the image, it means the binding process is complete.
3. Return to the FIRST LINE platform to receive the email
After completing the Gmail-side setup, Gmail will send a verification email to the FIRST LINE system.
You can view the email in the following ways:
Go to the "Conversation Queue" in the "Dashboard" and find the email by filtering through the pipeline
or receive the email through the normal assignment process and then view its contents
Then follow the instructions in the email and click the verification link to complete the setup.
❓FAQ
Unable to send mail via SMTP
When testing Gmail SMTP sending, if the error is "Failed to authenticate on SMTP server with username “xxx@gmail.com” using 3 possible authenticators. Authenticator LOGIN returned Swift_TransportException". Please ask the mailbox administrator to help rule out the following possible causes:
This Google mailbox has already exceeded the limit of three application authorizations.
Because your account usestwo-step verification, you mustcreate an app-specific passwordto sign in with the application.
How to enable app passwords
If you find that sending mail via Gmail SMTP fails, the possible reason is that as of May 2022, Google has fully switched to the stricter "App Passwords" feature, and you can no longer use your own Google login password to send mail.
Enter the Google Security Settings page:
Open the browser and go to Google Security Settings page.
In the "Signing in to Google" section, click "2-Step Verification".

Enable 2-Step Verification:
Click "Get started" and follow the prompts to verify your identity (you may need to enter your Google password).
Enter your phone number and choose how to receive the verification code (text message or voice call).
Enter the received verification code to complete the 2-Step Verification setup.

Generate an app password:
Return to Google Security Settings the page, find the "App passwords" option and click it.
In the "Select app" dropdown menu, choose "Other (Custom name)".
Enter "FIRST LINE system", then click "Generate".
The system will generate an app password; please record it carefully.
Set up SMTP for the FIRST LINE system:
Log in to your FIRST LINE system administration interface and go to the email settings page.
Enter the following SMTP configuration information:
Server location:smtp.gmail.com
Port:587
Account:[your Gmail account]
Password:[the app password just obtained]
Encryption method: TLS
After saving the settings, try sending a test email to confirm whether the setup was successful.
Last updated