Configure Gmail as your email provider in GpsGate

This guide shows how to setup GpsGate Server using a Gmail account as an SMTP server. We go through all the necessary steps, with an example, of how to send an email notification to a user from an alert generated by an event rule.

Steps

  1. Configure Gmail security settings
  2. Configure your SMTP server
  3. Set up your user
  4. Example: configure an event rule with an email notification

Configure Gmail security settings

Gmail has introduced several new security features. There are mainly three things to take into account before using Gmail with GpsGate:

  1. Enable IMAP and POP for Google Apps
  2. Allowing less secure apps feature: another feature from Google to block sign-in attempts from some apps or devices. This feature must be turned on in order to be able your Gmail account to work with GpsGate.
  3. 2-Step Verification: helps to protect your Gmail account with both your password and your phone. This option is compatible with GpsGate.

Security settings scenarios

You have two options in order to use Gmail with GpsGate Server:

a. Configure your 2-Step Verification using this wizard.
(If you already have the 2-Step Verification feature enabled, you need to add a new App password in your account settings > Sign-in & security > App passwords.)

b. If you don’t want to use option A, turn on the Less secure apps feature. You can do it here.

If you do not enable this feature, your email submission will be blocked when trying to send a test from GpsGate Server, and hence you’ll get an error:

mceclip0.png

Configure your SMTP server

1. Add your Gmail account under Site Admin > SettingsEmail

guide_emailConfig_screenshot14.png

2. Enter the account details:

mceclip1.png

  • Sender E-mail Address: the email address FROM where your email is being sent. When the recipient of the notification receives the email, this email will have the Sender Name registered in this address.
  • SMTP Server Hostname: the SMTP address of your email provider.
  • Use SSL: enable your SSL setting for Gmail.
  • SMTP Server Port: use 587 for SSL.
  • SMTP Username: the username of your account (without the @gmail.com).
  • SMTP Server Password: your account password.
  • Application Tags: if you want to use this SMTP provider with specific applications, select them here. Note that you'll need to create the application tags first under Applications > Application Tags.

Note: If you configured your account with the 2-Step Verification feature, you have to paste the code given by Google (check the first step in this guide).

3. Use the Test settings option to verify your settings work properly.

guide_emailConfig_screenshot3.png