How to Set Up SMTP Using Gmail SMTP in WordPress?

Table of Contents

Are your WordPress emails going to spam or not being delivered at all? By default, WordPress uses the PHP mail function to send emails — but many hosting providers don’t support it well. This often leads to important emails (like contact form messages, order confirmations, or password resets) ending up in spam folders or getting blocked completely. If you’re running a business or e-commerce site, this can be a serious issue.

Using Gmail SMTP (Simple Mail Transfer Protocol) is a reliable solution. With the Nexter Extension (Free) plugin, you can easily set up SMTP using Gmail SMTP. 

How to Set Up Gmail SMTP with the Nexter Extension

To set up Gmail SMTP with Nexter Extension, from the WordPress Dashboard, go to Nexter Extension > Utilities.

Then go to the SMTP Email section, enable the toggle and click on the gear icon (⚙).

enable-smtp-email

It will open the SMTP Email pop-up, then go to the Gmail SMTP tab.

smtp-email-popup

To use Gmail SMTP, you have to generate a client ID and a client secret.

Generate Google Client ID and Client Secret

1. For this, you have to log in to your Google account and go to the Google Developers Console.

2. If you don’t have any projects created, then click on the CREATE PROJECT link, but if you already have a project, then click on the current project name. It will open a pop-up, then click on the New Project link there.

google-client-id-secret-1

3. On the next screen, add your Project name and click the CREATE button.

google-client-id-secret-2

4. Once the project is created, a notification will show; click on the Select Project link there to switch to the new project.

google-client-id-secret-3

5. Then go to the Library from the left sidebar.

google-client-id-secret-4

6. Then search for “Gmail API”.

7. From the search result, click on the Gmail API.

8. On the next page, click the Enable button. 

9. After that, click on the OAuth consent screen from the left sidebar.

google-client-id-secret-6

10 Then click on the Get Started button.

google-client-id-secret-7

11. Then add your app information. Enter the app name and the user support email, then click on the Next button.

google-client-id-secret-8

12. Then select the Audience as External and click on the Next button.

google-client-id-secret-9

13. After that, add a contact email address and click on the Next button.

google-client-id-secret-10

14. Then, check the Google API services user data policy and click on the Continue button.

Once done, click on the Create button.

google-client-id-secret-11

15. On the next page, click on the Create OAuth client button.

google-client-id-secret-12

16. Then, from the Application type dropdown, select Web application

You can keep the Name as it is.

17. After that, in the Authorised JavaScript origins section, click the ADD URI button and add your website URL – Example: https://www.yourwebsite.com.

18. Then, in the Authorised redirect URLs section, click on the ADD URI button, then go back to the Nexter Email SMTP popup and copy the Redirect URI and paste it here.

19. Once done, click on the Done button.

20. Now you’ll see the Client ID in a pop-up. You can copy it into a notepad and click on the OK button.

google-client-id-secret-14

21. On the next screen, click on your client name.

google-client-id-secret-15

22. On the next screen, you’ll see both Client ID and Client Secret. 

Copy both in a notepad.

google-client-id-secret-16

Set up Gmail SMTP with the Nexter Extension

1. Now, in the Nexter SMTP pop-up, add the Client ID and Client Secret in the Client ID and Client Secret fields.

2. Then add a sender name in the From field.

3. After that, click on the Authorize with Gmail button.

4. It will open a pop-up, select the same Gmail account that you’ve used to create the app.

gmail-smtp-connection-1

5. Then click on the Continue link to bypass the Google verification.

gmail-smtp-connection-2

6. On the next screen, again click on the Continue button. 

gmail-smtp-connection-3

7. Then, in the next screen, allow all permissions and click on the Continue button.

gmail-smtp-connection-4

8. Now you’ll see your app has been authorized.

gmail-smtp-connection-5

Send Test Email

Once authorized, you’ll see a field to send a test email, add an email ID, and click on the Send button to verify the connection.

gmail-smtp-send-test-email

You should receive a test email in your entered email address.

gmail-smtp-test-email

Get Instant Answers to all your questions about Nexter Blocks, Exensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!