
Easy WP SMTP Gmail settings, if you’re running a WordPress website, ensuring that your emails are sent and received properly is crucial. Whether it’s transactional emails, password resets, or contact form submissions, email functionality is a vital part of your site’s operations. However, many WordPress users face issues with emails not being delivered. This is where WP SMTP and Gmail come into play.
In this blog, we’ll walk you through the easy WP SMTP Gmail settings to ensure your WordPress site sends emails reliably. By the end of this guide, you’ll have a fully functional email system using Gmail’s SMTP server.
Why Use Gmail’s SMTP for WordPress?
By default, WordPress uses the PHP mail() function to the send emails. Unfortunately, this method is unreliable and often results in emails being marked as spam or not being delivered at all. Using Gmail’s SMTP (Simple Mail Transfer Protocol) server solves this problem by routing your emails through Gmail’s secure and trusted servers.
Here are some benefits of using Gmail’s SMTP for WordPress:
- Improved Email Deliverability: Emails are less likely to be marked as spam.
- Reliability: Gmail’s servers are highly reliable and ensure your emails are sent successfully.
- Security: SMTP uses encryption to protect your email content.
- Easy Setup: Configuring Gmail’s SMTP settings is straightforward with the right plugin.
Prerequisites for WP SMTP Gmail Settings
Prior to we dive into the setup, ensure you have the following:
- A Gmail account (you can use a personal Gmail or Google Workspace account).
- A WordPress website with admin access.
- An SMTP plugin installed (we’ll use WP Mail SMTP in this guide).
Step 1: Install & Activate the WP Mail SMTP Plugin
The first step is to install a plugin that allows you to configure SMTP settings. One of the most popular & user-friendly options is WP Mail SMTP.
- Log in to your WordPress dashboard.
- Go to Plugins > Add New.
- Search for WP Mail SMTP.
- Click Install Now and then Activate
Step 2: Configure WP Mail SMTP with Gmail
Once the plugin is activated, follow these steps to configure it with your Gmail account:
- Go to WP Mail SMTP Settings:
In your WordPress dashboard, navigate to the WP Mail SMTP > Settings. - Select the Gmail Mailer:
Under the Mailer section, select Gmail from the dropdown menu. - Enter Your Gmail Account Details:
In the Gmail Client ID and Gmail Client Secret fields, you’ll need to enter credentials from your Google Developer Console. Don’t worry; we’ll cover this in the next section.
Step 3: Create a Google API Project
To use Gmail’s SMTP server, you need to create a Google API project and obtain the necessary credentials.
- Go to the Google Developer Console:
- Visit the Google Cloud Console.
- Log in with your Gmail account.
- Create a New Project:
- Click on project dropdown at the top of the page & select New Project.
- Give your project a name (For example “WordPress SMTP”) & click Create.
- Enable the Gmail API:
- In the sidebar, go to or open APIs & Services > Library.
- Search for Gmail API and click on it.
- Click Enable to enable API for your project.
- Configure OAuth Consent Screen:
- Open APIs & Services > OAuth Consent Screen.
- Select External and click Create.
- Fill in the required details (e.g., app name, support email).
- Save your changes.
- Create OAuth Credentials:
- Go to APIs & Services > Credentials.
- Click Create Credentials and select OAuth Client ID.
- Choose Web Application as the application type.
- Under Authorized Redirect URIs, add the following URL:
Copy https://connect.wpmailsmtp.com/google/
- Click Create.
- You’ll see a popup with your Client ID & Client Secret. Copy these values.
Step 4: Enter Gmail API Credentials in WP Mail SMTP
Now that you have your Google API credentials, it’s time to enter them into the WP Mail SMTP plugin.
- Go Back to WP Mail SMTP Settings:
- In your WordPress dashboard, navigate to the WP Mail SMTP > Settings.
- Paste Your Client ID and Client Secret:
- Paste the Client ID and Client Secret you copied from the Google Developer Console into the respective fields.
- Authorize the Plugin:
- Click the permit plugin to send emails using your Google account button.
- You’ll be redirected to a Google login page. Log in with the Gmail account you want to use for sending emails.
- Grant the necessary permissions to the plugin.
- Go Back to WP Mail SMTP Settings:
Step 5: Test Your SMTP Settings
After configuring the settings, it’s important to test if everything is working correctly.
- Go to the Email Test Tab:
- In the WP Mail SMTP settings, go to the Email Test tab.
- Send a Test Email:
- Enter an email address where you want to send test email.
- Click Send Email.
- Check Your Inbox:
- If the setup is correct, you should receive the test email in your inbox.
- Go to the Email Test Tab:
Troubleshooting Common Issues
If you encounter any issues, here are a few common fixes:
- Emails Not Sending:
- Double-check your Google API credentials.
- Ensure you’ve authorized the plugin correctly.
- Emails Marked as Spam:
- Make sure your Gmail account is verified.
- Use a professional email address (e.g., yourdomain.com) instead of a personal Gmail address.
- Error Messages:
- Check the error logs in the WP Mail SMTP plugin for more details.
- Emails Not Sending:
Conclusion
Configuring WP SMTP Gmail settings is a simple yet powerful way to ensure your WordPress site sends emails reliably. By following this step-by-step guide, you can set up Gmail’s SMTP server in just a few minutes and enjoy improved email deliverability and security.
If you found this guide helpful, don’t forget to share it with others who might benefit from it. And if you have any questions or run into issues, feel free to comment below. Happy emailing! 🚀