You can follow the steos in the documentation to set up Google SMTP email.
Step 1: Log into your Google account
Log into your Google account here.
Step 2: App Password generated if 2-Step Verification is Enabled
1. You have to enable 2-step verification on your Google account.
2. You would need to generate an application-specific password.
Create a new app-specific password, give it a name such as "Pify Form Builder" and then click Create.
Note down the application password as it will be required in the next step.
Step 3: Configure Gmail on the SMTP Add-on
1. Enter the form editing page, click on Settings, expand Use custom SMTP, enable Use custom SMTP.
SMTP Host (Google account) : smtp.gmail.com
Port : 465
Username/Email address (Gmail login username) : your.username@gmail.com
Password (Generated in step 2 above) : your App password