---
title: "How to Set Up SMTP Using Gmail SMTP in WordPress?"
url: https://nexterwp.com/docs/set-up-smtp-using-gmail-smtp-in-wordpress/
date: 2025-08-12
modified: 2026-04-14
author: "Aditya Sharma"
description: "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..."
image: https://nexterwp.com/wp-content/uploads/2025/08/How-to-Set-Up-SMTP-Using-Gmail-SMTP-in-WordPress-1024x538.jpg
word_count: 712
---

# How to Set Up SMTP Using Gmail SMTP in WordPress?

## Key Takeaways

- Nexter Extension allows users to set up Gmail SMTP easily from the WordPress Dashboard.
- Users must generate a Google Client ID and Client Secret to use Gmail SMTP with Nexter Extension.
- The Nexter SMTP pop-up requires users to input a sender email, sender name, Client ID, and Client Secret.
- After authorization, users can send a test email to verify the connection.

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)](https://wordpress.org/plugins/nexter-extension/) plugin, you can easily set up SMTP using Gmail SMTP. 

[LIVE EXTENSION LINK](https://nexterwp.com/nexter-extensions/email-smtp-for-wordpress/)

 

## How to Set Up Gmail SMTP with the Nexter Extension

https://www.youtube.com/watch?v=s0gDiK0RnsA

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

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

![](https://nexterwp.com/wp-content/uploads/2025/08/enable-smtp-email-new.png)

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

![](https://nexterwp.com/wp-content/uploads/2025/08/smtp-email-popup-new.png)

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](https://console.developers.google.com/).

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](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-1.png)

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

![google-client-id-secret-2](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-2.png)

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](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-3.png)

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

![google-client-id-secret-4](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-4.png)

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](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-6.png)

10 Then click on the **Get Started** button.

![google-client-id-secret-7](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-7.png)

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](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-8.png)

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

![google-client-id-secret-9](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-9.png)

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

![google-client-id-secret-10](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-10.png)

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](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-11.png)

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

![google-client-id-secret-12](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-12.png)

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](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-14.png)

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

![google-client-id-secret-15](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-15.png)

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

Copy both in a notepad.

![google-client-id-secret-16](https://nexterwp.com/wp-content/uploads/2025/08/google-client-id-secret-16.png)

### Set up Gmail SMTP with the Nexter Extension

1. Now, in the Nexter SMTP pop-up, add a sender email and name in the **From Email** and **From Name** fields.

2. Then add the Client ID and Client Secret in the **Client ID** and **Client Secret** fields.

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

![](https://nexterwp.com/wp-content/uploads/2025/08/add-client-id-client-secret-new.png)

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

![gmail-smtp-connection-1](https://nexterwp.com/wp-content/uploads/2025/08/gmail-smtp-connection-1.png)

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

![gmail-smtp-connection-2](https://nexterwp.com/wp-content/uploads/2025/08/gmail-smtp-connection-2.png)

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

![gmail-smtp-connection-3](https://nexterwp.com/wp-content/uploads/2025/08/gmail-smtp-connection-3.png)

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

![gmail-smtp-connection-4](https://nexterwp.com/wp-content/uploads/2025/08/gmail-smtp-connection-4.png)

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

![](https://nexterwp.com/wp-content/uploads/2025/08/gmail-smtp-connection-5-new.png)

### 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.

![](https://nexterwp.com/wp-content/uploads/2025/08/gmail-smtp-send-test-email-new.png)

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

![gmail-smtp-test-email](https://nexterwp.com/wp-content/uploads/2025/08/gmail-smtp-test-email.png)

## Frequently Asked Questions

**Q: What should I do if my test email doesn't arrive after setting up Gmail SMTP?**
A: If your test email doesn't arrive, check your spam folder first, as emails often end up there. Ensure that you've correctly followed the steps to generate the Client ID and Client Secret in the Google Developers Console. Additionally, verify that you've authorized the correct Gmail account during the setup process. If issues persist, consider checking your server's email configuration or consult your hosting provider.

**Q: What are the best practices for setting up Gmail SMTP in WordPress?**
A: When setting up Gmail SMTP, ensure that you use a dedicated Gmail account for sending emails to avoid issues with email limits. It's also crucial to enable the Gmail API and set the correct redirect URIs in the Google Developers Console. This setup minimizes the risk of emails being marked as spam and ensures reliable delivery. The Nexter Extension simplifies this process by guiding you through the necessary steps.

**Q: How do I generate a Google Client ID and Client Secret for Gmail SMTP?**
A: To generate a Google Client ID and Client Secret, log in to your Google account and navigate to the Google Developers Console. Create a new project, enable the Gmail API, and set up the OAuth consent screen. After that, create an OAuth client ID for a web application and add your website's URL as an authorized redirect URI. Copy the Client ID and Client Secret for use in the Nexter Extension.

**Q: Does the Nexter Extension support other SMTP providers besides Gmail?**
A: The page specifically discusses setting up Gmail SMTP using the Nexter Extension, but it does not mention support for other SMTP providers. If you're looking for alternatives, you may need to explore other plugins or solutions that explicitly support different SMTP services. The Nexter Extension is designed primarily for Gmail integration.
