Introduction
I will show you how to integrate Gmail SMTP with Cloudflare to be able to send emails from that address. Let’s get started.
Your Google account may use two-step verification for increased security, also called 2-factor authentication. You must enter both your password and your phone number to access Gmail when enabled. Since hackers won’t receive the security code sent to your phone, hackers who get your password will not be able to access your account. This method requires App Passwords to be used to send emails from the plug-in. App Passwords are 16-digit passcodes that give non-Google apps or devices permission to access your Google Account. Two-Step Verification is required for App Passwords to work.
Step 1: Enable 2-Factor Authentication in Google Account
Open a web browser and login into your Google account. Click on the “Security” menu (it can be located on the left or at the top of the webpage).
Step 2: Select “2-Step Verification”
If “2-Step Verification” is not turned on, then click on it to enable it.
Step 3: Configure 2-Step Verification.
Click the “Get Started” button to configure the 2-step verification options.
You may be prompted to login into your Google account one more time to confirm your identity:
Step 4: Use your Phone to Complete Configuration
Use on-screen instructions and available options to complete 2-Step verification using your phone.
Step 5: Create the App Password
Click on the “App Password” option to create a new application password for use with the AutoMailMerge:
Step 6: Add New App Name
First, select a device (for example, Windows Computer) and then click on the “Select App” menu and choose “Other (custom name)”:
Enter any name you want as an app name (it does not matter what name is used in this field). Click the “Generate” button:
Copy the auto-generated app password in notepad or select it and copy it to the clipboard for later use.
Step 7: Gmail setting
Now we’ll see how to integrate it with Gmail so that we can send emails using Cloudflare’s custom email address.
Then click on Accounts and Import. In the Send mail option, click on Add another email address.
A new popup will be opened. Here enter the name which you want to show when you send an email from that custom mail address and the custom email address and click on Next Step>>
Now, fill in the rest of the details like this-
SMTP Server: smtp.gmail.com
Username: Your Gmail Username ( in the case of [email protected], the user is the username).
Password: password which we created earlier and pasted in the notepad.
And port to 465.
Now a verification code will be sent to your custom email address, which you know you’ll find in your Gmail inbox. You will find a verification code which you need to enter in the next step and verify.
After Verification, you can choose between your original Gmail address and the custom Cloudflare email address while sending an email. Or you can make it default by going to the Accounts and Import tab again and clicking on make default. That’s it. you’ve got what you wanted.
I hope this post helped you find what you wanted.