How to Set Up SendGrid in WordPress

How to Set Up SendGrid in WordPress (Step by Step)

Summarize:ChatGPTPerplexity

Do you want to fix your WordPress email issues with the SendGrid provider?

Connecting SendGrid to WordPress used to be the default free fix for email problems. It isn’t free anymore, and that’s worth knowing before you start.

In this guide, you’ll learn how to connect SendGrid to WordPress with the WP Mail SMTP Setup Wizard.

Fix Your WordPress Emails Now


What Is SendGrid, and Is It Still Free?

SendGrid is an email delivery service that sends your site’s mail through its API instead of your web host’s mail server. And no, it’s no longer free permanently.

Twilio retired SendGrid’s free plan on May 27, 2025. What’s left is a 60-day trial that sends up to 100 emails a day. After that, you move to a paid plan or you stop sending.

That’s the honest starting point. Here’s what you get for it:

  • API-based sending. More secure and more reliable than plain SMTP.
  • Domain authentication. DNS records prove your mail is really from your domain.
  • Delivery activity. You can see what was delivered, deferred, or bounced.
  • Scale. SendGrid handles volume that shared hosting can’t.

SendGrid needs DNS access to set up properly, and it needs an email address on a domain you own. Addresses at @gmail.com or @yahoo.com aren’t suitable here.

Note: Not sure SendGrid is the right pick now that the free plan is gone? WP Mail SMTP supports 17 other mailers. Our SendGrid review covers the current pricing in detail, and best SMTP servers compares the alternatives.

How to Create a SendGrid Account

Sign up on SendGrid’s pricing page and pick the plan that fits your sending volume.

The SendGrid pricing page

The steps below are the same regardless of which plan you choose. Next, create your username and password.

The SendGrid signup form

SendGrid then asks a few questions about your business. Fill in the required fields and click Get Started!

SendGrid account details questions

How to Authenticate Your Domain in SendGrid

Before you can start sending emails with SendGrid, you’ll need to verify your sending domain.

For this, log in to your SendGrid account and navigate to Settings » Sender Authentication. Then start Domain Authentication.

The Sender Authentication menu in SendGrid

Single Sender or Domain Authentication: Which Should You Use?

Use domain authentication. A single sender gets you sending faster, but it won’t hold up.

Single senderDomain authentication
Setup time2 minutes15 minutes plus DNS wait
Needs DNS accessNoYes
Removes “via sendgrid.net”NoYes
Reliable deliveryNoYes
Good forA quick testA live site

A single sender verifies one address and nothing more. Domain authentication proves you own the whole domain, which is what inbox providers actually check.

In the Domain Authentication section, click Get Started.

The Domain Authentication Get Started button

SendGrid asks 2 questions. Pick your DNS host from the list, or choose Other Host (Not Listed). Then answer yes to branding your links, so links in your emails use your domain instead of SendGrid’s.

Click Next.

Answering SendGrid's DNS host questions

Enter your site’s domain, like example.com.

Entering a domain for SendGrid authentication

Which Advanced Settings Do You Need to Change?

Open Advanced Settings and change 3 things. Skip this and your DNS records won’t verify the way WP Mail SMTP expects.

  1. Uncheck Use automated security.
  2. Check Use custom return path.
  3. Enter a subdomain in the Return Path field.

SendGrid domain authentication advanced settings

A subdomain replaces the “www” in your address. SendGrid only uses it to send mail, so it never appears on your site.

Use sg unless you have a reason not to. SendGrid recommends avoiding mail, since many hosts already use it, and avoiding underscores, which some DNS providers reject.

Click Next to continue.

The Next button in SendGrid advanced settings

How to Add SendGrid’s DNS Records

SendGrid shows you a list of records to add to your DNS.

The DNS records SendGrid asks you to add

Open your DNS settings and add each record exactly as shown. Copy the values carefully, since one wrong character stops verification.

Note: Some hosts append your domain automatically. If yours does, enter just sg instead of sg.example.com for the hostname. Our guide to DNS email configuration walks through the common providers.

If there’s a TTL field, set it to one day (86400 seconds).

Back in SendGrid, check the box labeled I have added these records, then click Verify.

Verifying DNS records in SendGrid

DNS changes can take up to 48 hours. When they land, you’ll see a success message.

SendGrid confirming DNS records are verified

Fix Your WordPress Emails Now

How to Create a SendGrid API Key

In SendGrid, click Email API » Integration Guide in the left menu.

The Email API Integration Guide menu in SendGrid

Click Choose under SMTP Relay.

Choosing SMTP Relay in SendGrid

Name your key, then click Create Key.

Naming a new SendGrid API key

SendGrid generates the key. Leave this page open because you’ll paste it into WordPress next.

A generated SendGrid API key

Important: The key needs Mail Send access. Keys created through the Integration Guide have it by default. If you build one by hand under Settings » API Keys, grant Mail Send access; otherwise, your emails will be rejected.

How to Connect SendGrid to WordPress With the Setup Wizard

The Setup Wizard walks you through the plugin side in 6 steps and fills in the settings as you go.

Step 1: Launch the Setup Wizard

Go to WP Mail SMTP » Settings in your WordPress dashboard. Click Launch Setup Wizard below the Primary Connection section.

The Launch Setup Wizard button in WP Mail SMTP settings

Note: The wizard only configures your Primary Connection. Extra connections have to be set up by hand.

Click Let’s Get Started.

The Let's Get Started button in the WP Mail SMTP Setup Wizard

Step 2: Select Your Mailer

Click SendGrid in the mailer grid, then click Save and Continue.

WP Mail SMTP Setup Wizard mailer selection screen with SendGrid selected

Step 3: Enter Your SendGrid Settings

The wizard shows only the fields SendGrid needs. There are 4, in this order:

  1. API Key. Paste the key from SendGrid.
  2. Sending Domain. The full subdomain you authenticated, such as sg.example.com.
  3. From Name. The sender name on your site’s emails. Turn on Force From Name to apply it everywhere.
  4. From Email. An address on the domain you authenticated, like [email protected]. Turn on Force From Email so every email uses it.

Warning: The Sending Domain has to be the whole subdomain, not just example.com. Getting this wrong is a common cause of domain check errors on test emails.

WP Mail SMTP Setup Wizard SendGrid settings step showing the API Key and Sending Domain fields

Click Save and Continue.

Step 4: Enable Advanced Email Features

Leave Improved Email Deliverability and Email Error Tracking on. They’re on by default and can’t be turned off.

The rest are worth considering:

  • Detailed Email Logs. A record of every email your site sends.
  • Complete Email Reports. Deliverability stats over time. Needs logs enabled.
  • Weekly Email Summary. A weekly digest of your sending. Needs logs enabled.
  • Instant Email Alerts. Notifies you by email, SMS, Slack, or webhook when a send fails.

Selecting email features in the WP Mail SMTP Setup Wizard

Note: Email logging needs a paid WP Mail SMTP license.

If you turned on logs, the next screen asks what to store. Choose your options and click Save and Continue.

Configuring email log options in the Setup Wizard

Step 5: Verify Your License (Optional)

Finally, paste your license key and click Verify License Key. Or click Skip this Step and do it later.

Entering a license key in the WP Mail SMTP Setup Wizard

If you’d like to access automatic updates and advanced features, a valid license key is required.

How to Send a Test Email

The wizard sends one automatically at the end of setup.

If everything’s right, you’ll see “Congrats, you’ve successfully set up WP Mail SMTP!” Click Finish Setup.

The WP Mail SMTP Setup Wizard success screen

You can run more tests any time from WP Mail SMTP » Tools » Email Test.

Send a test email

Want to confirm that the authentication worked? Send yourself a test, open it in your email client, and expand the sender details. A properly authenticated domain won’t show “via sendgrid.net”.

Checking SendGrid domain authentication in Gmail sender details

What to Do if Your SendGrid Test Email Fails

Click Start Troubleshooting on the wizard’s error screen to see the real error message.

The WP Mail SMTP Setup Wizard troubleshooting screen

Four causes account for nearly every failed SendGrid setup:

What went wrongHow to fix it
DNS hasn’t propagatedWait up to 48 hours, then click Verify in SendGrid again
Sending Domain mismatchUse the full authenticated subdomain, like sg.example.com
API key lacks Mail SendCreate a new key through Email API » Integration Guide
Old TLS versionAsk your host to move you to TLS 1.2 or above

A fifth one catches people out: leaving Use automated security checked during domain authentication. That produces a different set of DNS records than the ones this setup expects.

Still stuck? Our guide to WP Mail SMTP not sending test emails covers the rarer errors.

Pro Tip: Add a Backup Connection with a second mailer. If SendGrid fails or your trial runs out, WP Mail SMTP sends the email through the backup instead of dropping it. SendLayer has a Quick Connect option that skips the domain verification process. Check our Quick Connect guide for more details.

Frequently Asked Questions

Is SendGrid still free for WordPress?

No. Twilio retired SendGrid’s permanent free plan on May 27, 2025. New accounts get a 60-day trial with up to 100 emails per day, then must switch to a paid plan.

Do I need a plugin to use SendGrid with WordPress?

Yes. WordPress can’t access SendGrid’s API on its own. SMTP plugins like WP Mail SMTP make the connection and route every wp_mail() call through SendGrid.

Why are my SendGrid emails not sending in WordPress?

Check your domain authentication status in SendGrid first. After that, check 3 things: a Sending Domain missing its subdomain, an API key without Mail Send access, or an old TLS version.

What’s the difference between a single sender and domain authentication?

A single sender verifies one email address. Domain authentication verifies your whole domain with DNS records and removes the “via sendgrid.net” label. It’s the only one of the two that delivers reliably.

What are the best SendGrid alternatives for WordPress?

WP Mail SMTP supports 17 mailers, so you have options if the pricing no longer works. Mailgun, Brevo, Postmark, and Amazon SES are all common switches. Our best SMTP servers guide compares them on price and deliverability.

Next, Learn WordPress Email Deliverability Best Practices

With SendGrid connected, the next thing I’d read is our guide to WordPress email deliverability best practices. It covers the habits that keep your sending reputation healthy: list hygiene, bounce handling, and the records inbox providers check. Domain authentication got you to the inbox, and that post is how you stay there.

Fix Your WordPress Emails Now

Ready to fix your emails? Get started today with the best WordPress SMTP plugin. If you don’t have the time to fix your emails, you can get full White Glove Setup assistance as an extra purchase, and there’s a 14-day money-back guarantee for all paid plans.

If this article helped you out, please follow us on Facebook and Twitter for more WordPress tips and tutorials.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPForms is funded, why it matters, and how you can support us.

David Ozokoye

David is a technical writer at WP Mail SMTP. He tests and documents new features and updates to the WP Mail SMTP plugin. Away from the computer, he enjoys playing video games and roller skating. Learn More

Try our Free WP Mail SMTP plugin

Use your favorite SMTP provider to reliably send your WordPress emails.