Gmail Security Authorization for Maple HMIs
Technical Note 5114
Applicable Model(s)
HMI5000 Series
cMT Series
Title
Gmail Security Authorization for Maple HMIs
Date
01/04/2023
Rev
04
P/N
0907-5114
Summary
Google has accounts restricted for third party app/device access. If you are using a Gmail account in the SMTP settings for your HMI project, this tech note describes the process to unlock the Gmail account with an app password to allow the HMI to use it to send emails.
Solution
To help keep your account secure, starting May 30, 2022, Google ended support for third-party apps or devices which ask you to sign into your Google Account using only your username and password. If you are using a Gmail account in the SMTP settings for your HMI project to send emails, this technical note describes the procedure you must follow to allow the HMI to use your Gmail account to send emails.
Since Google will no longer allow a third-party app like an HMI to log in to your Gmail account with your username and password, you will have to use an app password, which is automatically generated by Gmail, to log in. The app password is a 16-digit code that allows you to access your Gmail account from a non-Google app or device. The app password can only be generated if you have enabled 2-step verification in your account.
App passwords help users keep their account safe and secure while accessing it with third-party or non-Google apps. In short, it adds an extra layer of security to your Gmail account. Usually, you don’t need an app password, but when you are signing in from an app that doesn’t support “Sign in with Google,” then you can use the app password.
2-Step Verification
Before generating an app password in Gmail, you will have to enable 2-step verification first. If you haven’t enabled 2-step verification in Gmail, then follow these steps to do so.
1.
Go to Gmail and log in to your account.
2.
In the upper-right corner, click the Home Account icon. In the open wizard, click Manage your Google Account.
3.
You will be redirected to Gmail Settings. In the left tab, click Security, and then click 2-step verification in the How you sign in to Google section.
4.
The 2-step verification window will appear on the screen. Click Turn on 2-Step Verification.
5.
You will be asked to log in to Gmail again. After you log in, it will ask to send a verification code to your phone. Click Send. Enter the verification code sent to your phone and click Next.
6.
The next step is to set up your phone. Verify the phone number you want to use for 2-Step verification. Select Text or Phone call for the method of receiving the verification code. Click Next. Enter the verification code sent to your phone. Click Next.
7.
Turn on 2-Step Verification. Click TURN ON.
2-step verification has been enabled. Now, you can easily create an app password to login from third-party apps.
Creating an App Password
1.
To create an app password after enabling 2-step verification, go to Manage your Google Account from the home tab.
2.
Click the Security tab in the left pane, and then scroll down to How you sign in to Google.
3.
Here you will see the App Passwords option. Click on it, and you will be asked to sign in again to your Gmail account.
If the App Passwords section is not visible, you can type “App Password” into the search bar at the top of the window and press Enter to find it.
4.
After signing in, enter a name for the device you are making an App Password for and click Create.
5.
The following screen will be displayed with the generated app password.
5.
Enter this password in the System Parameters > e-Mail tab under SMTP settings for the Gmail password.