That’s where SMTP (Simple Mail Transfer Protocol) and services like SendGrid come to the rescue.
In this detailed guide, I’ll walk you through how to set up SMTP for SendGrid on WordPress, ensuring your emails land in inboxes—not spam folders. We’ll cover the benefits of using SendGrid, the setup process, and how to test everything to ensure it works flawlessly.

Why Use SendGrid SMTP for WordPress Emails?
Before diving into the technical steps, let’s first understand why setting up SMTP for SendGrid on WordPress is such a game-changer.
WordPress, by default, relies on PHP to send emails. This is especially frustrating for eCommerce stores, membership sites, or any business that relies on consistent email communication.
SendGrid, a cloud-based email delivery service, offers a reliable alternative. Here are a few reasons why using SendGrid SMTP is ideal for WordPress:
- Improved Deliverability: Using SMTP ensures your emails are authenticated properly, making them less likely to be marked as spam.
- Detailed Analytics: SendGrid provides analytics to track open rates, bounces, and other key metrics.
- Scalability: Whether you’re sending 100 or 100,000 emails, SendGrid can handle the load seamlessly.
Now, let’s get into the real reason you’re here: how to set up SMTP for SendGrid on WordPress.
Step 1: Set Up Your SendGrid Account and API Key
To get started, you’ll need a SendGrid account. If you don’t already have one, here’s how you can get set up:
- Sign Up for SendGrid: Head over to SendGrid’s website and create an account. They offer a free tier which should be sufficient for small websites.
- Create an API Key: Once your account is ready, you’ll need an API key to connect SendGrid to your WordPress site.
- Follow these steps to generate an API key:
- Go to the SendGrid dashboard.
- Navigate to Settings > API Keys.
- Click on Create API Key and name it something memorable like “WordPress Site SMTP.”
- Set permissions to Full Access, and then click Create & View to copy your API key.
Make sure to store this key somewhere safe—you’ll need it in the next steps.
Step 2: Install and Configure an SMTP Plugin for WordPress
WordPress, by default, doesn’t have a built-in SMTP mailer, so you’ll need to install a plugin to connect SendGrid to your WordPress site.
There are many SMTP plugins available, but for this guide, we’ll use WP Mail SMTP, one of the most popular and easy-to-use SMTP plugins.
Install WP Mail SMTP:
- Log into your WordPress dashboard.
- Go to Plugins > Add New and search for “WP Mail SMTP.”
- Install and activate the plugin.
Configure the SMTP Plugin:
- After activation, navigate to WP Mail SMTP under the Settings tab in your WordPress dashboard.
- In the Mail section, input your email address (the one associated with your domain) and a “From Name” (usually your website or business name).
- Scroll down to the Mailer section, and select SendGrid.
- A new set of fields will appear. Paste the API Key you generated earlier from your SendGrid account into the appropriate field.
That’s it for the configuration. The plugin now knows it will be using SendGrid SMTP to send emails from your WordPress site.
Step 3: Set Up Domain Authentication in SendGrid
To ensure your emails are fully authenticated and less likely to end up in the spam folder, you need to set up domain authentication on SendGrid.
Go to Domain Authentication:
From your SendGrid dashboard, navigate to Settings > Sender Authentication.
Select DNS Host:
Select your DNS host provider (like GoDaddy, Cloudflare, etc.) from the list.
Enter Domain Information:
Input your domain (e.g., “example.com”) and any subdomains (if applicable).
Configure DNS Records:
SendGrid will provide you with a list of DNS records (CNAME, TXT, etc.).
Once added, it might take some time (up to 48 hours) for the DNS changes to propagate, though it’s often much quicker.
Once domain authentication is complete, your emails will be recognized as coming from your domain, further improving deliverability.
Step 4: Test Your SMTP Setup
Now that you’ve done all the heavy lifting, it’s time to make sure everything works as it should.
Navigate to the Testing Section:
In your WordPress dashboard, go to WP Mail SMTP > Email Test.
Send a Test Email:
Enter an email address where you want to receive the test email. This should be an address you have access to, ideally on a different domain than the one you’re sending from (to check deliverability).
Click on Send Email.
Check Your Inbox:
If it lands in your inbox (and not the spam folder), congratulations! You’ve successfully set up SMTP for SendGrid on WordPress.
Step 5: Troubleshooting Common Issues
Despite following all the steps, things might not always go smoothly. Let’s explore some common issues you might face when setting up SMTP for SendGrid on WordPress, along with quick solutions.
- Issue: Emails Not Being Delivered: Double-check that your API key is correct and that your domain authentication has been completed. You can also review the SendGrid Activity tab to see if there are any delivery errors.
- Issue: Emails Going to Spam: This is often due to missing or incorrect DNS records. You can also improve email content quality by avoiding spammy words and formatting.
- Issue: Plugin Conflicts: If WP Mail SMTP is not working as expected, deactivate other email or SMTP plugins that may be interfering. Sometimes multiple plugins can create conflicts in the email-sending process.

Final Thoughts: Secure, Reliable Email with SendGrid SMTP
Now that you know how to set up SMTP for SendGrid on WordPress, you’ve taken a huge step towards more reliable and professional email delivery.
With SendGrid’s powerful analytics and robust deliverability, you can rest easy knowing your communication is in good hands. Plus, by adding domain authentication, you’ve further solidified your email-sending credibility.
Interesting Reads:
How to Serve Properly Sized Images in WordPress


