Blog -

How to Send Email Using SendGrid with WordPress

Colin Newcomer By Colin Newcomer Published February 23, 2026 · Updated February 25, 2026

How to Send Email Using SendGrid with WordPress

Trying to set up SendGrid WordPress email sending to improve your site’s transactional emails?

By default, WordPress tries to send its emails using wp_mail (based on PHP mail). This often causes problems, either because the emails just don’t send in the first place or they end up in users’ spam folders.

With a WordPress SMTP plugin like Gravity SMTP, you can configure your WordPress site to send its emails using SendGrid’s dedicated email sending service instead, which means you can be confident that your emails will actually make it to your users’ inboxes.

In this post, you’ll learn step-by-step how to set up SendGrid WordPress email sending using the Gravity SMTP plugin.

But before we get to the step-by-step tutorial, let’s briefly run over the tools that you’ll need to follow this guide.

Key takeaways

  • WordPress often struggles with email deliverability when relying on PHP mail, making an SMTP service like Gravity SMTP essential for reliable inbox placement.
  • Gravity SMTP, built by the Gravity Forms team, provides seamless SendGrid integration with simple API key setup, testing tools, and detailed email logging.
  • SendGrid stands out from other email services with affordable pricing, and a 97% deliverability rate.
  • Authenticating your domain with SendGrid improves trust and deliverability, helping WordPress emails avoid spam filters.
  • Gravity SMTP not only supports SendGrid but also offers fallback integrations with other services like Mailgun and Postmark for extra reliability.

How the Gravity SMTP plugin helps you connect to SendGrid

If you want to connect WordPress to SendGrid, you’ll need the help of a WordPress SMTP plugin like Gravity SMTP.

Gravity SMTP is a new standalone plugin from the same team behind Gravity Forms.

It helps you send all of your site’s emails using your preferred service, including core WordPress emails, email notifications from Gravity Forms, and emails from most other plugins (as long as those plugins use the wp_mail function).

Here are some of the specific reasons why Gravity SMTP makes a great option for integrating your site with SendGrid:

  • Simple SendGrid integration – All you need to do is add your SendGrid API key and Gravity SMTP handles the rest.
  • Email testing tools – You can access multiple email testing tools to make sure your site’s emails are working properly.
  • Detailed email logging – You can log all the emails that your site sends so that you can monitor everything and catch potential issues before they become problems.
  • Reliability and support – While Gravity SMTP is a standalone plugin, it’s still backed by the support and reliability of the same team that’s behind Gravity Forms.
  • Supports other email sending services – In addition to SendGrid, you can also integrate with other email services like Mailgun, Postmark, and others. This lets you set up fallback services in case something ever goes wrong with SendGrid.
  • More features on the way – The Gravity SMTP team is already working on a bunch of new features. To have your say on new features or integrations, head on over to our feature request page – play a role in shaping the future of Gravity SMTP.

Benefits of SendGrid vs other email sending services

As we mentioned above, Gravity SMTP supports multiple email sending services.

However, here are some of the specific reasons why you might want to consider SendGrid:

  • Affordable paid plans – Even if you need to exceed the free plan’s limits, SendGrid is still one of the cheaper email sending services out there. Paid plans start at $19.95 to send up to 50,000 emails per month.
  • Well-established and reliable – SendGrid is owned by Twilio and used by big brands like Uber, Spotify, and Airbnb, which should give you confidence that it’s a reliable long-term solution.
  • Good deliverability rates – SendGrid has a 97% email deliverability rate, which is well above the industry average.

How to set up SendGrid WordPress email sending

Now that you have all of the relevant background information, let’s jump into the full step-by-step guide for how to set up SendGrid WordPress email sending using the Gravity SMTP plugin.

Here’s a high-level look at the process – keep reading for the details:

  1. Install the Gravity SMTP plugin
  2. Register for a SendGrid account
  3. Authenticate your domain name with SendGrid
  4. Create a SendGrid API key
  5. Configure Gravity SMTP to use SendGrid
  6. Send a test email

1. Install the Gravity SMTP Plugin On Your Site

To get started, you’ll want to install and activate the Gravity SMTP plugin on your site.

As we mentioned earlier, Gravity SMTP is a standalone plugin, so you do not need to be using Gravity Forms to use it on your site (though it does work well with Gravity Forms).

Currently, you can access Gravity SMTP at no extra cost on the Gravity Forms Elite license. You can find the plugin in your Gravity account.

2. Register for your SendGrid account (if you haven’t already done so)

Next, you’ll want to register for your SendGrid account, if you haven’t done so already.

You can register for your account for free and without needing to enter a credit card.

SendGrid offers a generous free option that lets you send up to 100 emails per day for free during the initial trial period. That limit should be fine for many WordPress sites.

It also means that you can follow this guide and set everything up without needing to pay anything or enter your credit card.

After the trial period, or as soon as you need to exceed the free limit, paid plans start at just $19.95 per month to send up to 50,000 emails.

3. Authenticate your domain name with SendGrid

In order to send emails directly from your domain name and improve your email deliverability, you’ll need to authenticate your domain name with SendGrid.

This not only proves to SendGrid that you control your domain name, but it also makes your emails look more trustworthy to email spam filters, which helps you avoid getting accidentally flagged as spam.

SendGrid offers two methods to authenticate your site:

While the Single Sender Verification method is a little simpler, we recommend using the Domain Authentication approach (as does SendGrid). It will further improve your email deliverability and it also lets you send from any email address on your domain name, which gives you more flexibility.

For these reasons, we’ll focus exclusively on the Domain Authentication approach, though Single Sender Verification is still an option if you’re unable to set up Domain Authentication for some reason (e.g. you can’t access your domain’s DNS records).

Here’s how to get started:

  1. Open your SendGrid dashboard.
  2. Go to Settings → Sender Authentication.
  3. Choose the option to Authenticate Your Domain.

Authenticate a new domain name

Next, you’ll be prompted to choose your DNS host, which will usually be one of these three options:

  1. Your web host, if you’re using your host’s nameservers.
  2. Your domain registrar, if you pointed your domain name to your host using an A or CNAME record.
  3. Cloudflare, if you’re using Cloudflare’s nameservers.

There’s also an “other” option if you don’t see your provider.

You’ll also be asked whether you want to use custom link branding for tracking links in your email. This will let you rewrite the tracking links in your emails to use your own domain name, rather than sendgrid.net.

Choose DNS service

Once you click Next, you’ll need to enter your actual domain name and then click Next again.

Enter domain name

You’ll then be prompted to add the DNS records that SendGrid provides. Whenever possible, SendGrid will show instructions that are specific to the DNS host that you chose earlier in the setup process.

For the regular authentication, you’ll need to add three CNAME records. If you want to use branded links, you’ll also need to add records for that.

DNS records to add

Here’s what it looks like to add the records to Cloudflare:

Add DNS records

Once you’ve added all of the records, you can check the I’ve added these records box and then click Verify.

If all goes well, you should see a success message. If it doesn’t work, you can wait 30 minutes and then try again. Sometimes it can take 30 minutes (or even multiple hours) for your DNS changes to fully propagate.

Successful authentication

4. Create a SendGrid API Key for Gravity SMTP

Once you’ve authenticated your domain name, the next step is to create an API key, which is what you’ll actually use to connect WordPress to SendGrid.

Here’s how to do that:

  1. Go to Settings → API Keys in your SendGrid dashboard (or click this link to go straight to the API key dashboard area).
  2. Click the Create API Key button.

Create a new SendGrid API key

This will open a slide-out panel:

  1. Give your API key an internal name to help you remember it.
  2. Choose the Full Access option under API Key Permissions.
  3. Click the Create & View button.

Set up the new SendGrid API key

SendGrid will then show you your API key. You should copy this key to a safe place because you’ll need it in the next step and SendGrid will not show you the key again.

Don’t worry – if you accidentally lose the API key, you can just follow the same steps to create a new one.

Gravity Forms SendGrid API key

5. Configure Gravity SMTP to use SendGrid

Once you have your SendGrid API key, you’re ready to configure Gravity SMTP to start sending your WordPress site’s emails using SendGrid.

To set things up, follow these steps:

  1. Open your WordPress dashboard.
  2. Go to SMTP → Settings.
  3. Select the Integrations tab.
  4. Click the plus icon to add a new integration, and choose SendGrid.

Gravity SMTP new connection SendGrid flyout

This will open a slideout with settings you’ll need to complete:

  • SendGrid API Key – Paste in the SendGrid API key that you created in the previous step.
  • Default From Email – This is the email address that your site’s emails will be sent from – e.g. “[email protected]”. If you set up Domain Authentication in step #3, you can enter any email address that uses your domain name. If you set up Single Sender Verification, you must enter that exact email address.
  • Force From Email – This lets you force other plugins on your site to use this same email address.
  • Default From Name – This is the name that your site’s emails will be sent from.
  • Force From Name – This lets you force other plugins to use the same name.

Once you’ve added everything, click the Save Changes button.

Gravity SMTP SendGrid settings flyout

Finally, to activate SendGrid as your site’s primary email sending service, you need to enable the toggle in the SendGrid box.

After enabling the toggle, you should see the status change from Configured to Connected, which indicates that SendGrid is now your site’s primary email sending service.

6. Send a test email using SendGrid

At this point, your site should be properly configured to start sending its emails using SendGrid.

To make sure that everything is working properly, Gravity SMTP includes a built-in feature to let you send a test email:

  1. Go to SMTP → Tools in your WordPress dashboard.
  2. Select the Send a Test tab (it should be selected by default).
  3. Enter your email address in the Send To box (or any email address to which you want to send a test email).
  4. Click the Send Test button.

Gravity SMTP send a test email

You should then see a success message in the Gravity SMTP interface and you should also receive an actual email in your email client.

Here’s an example of what the email might look like – in addition to checking for the email itself, we also recommend checking the “From Email” and “From Name” to make sure they’re displaying as you want them to.

Gravity SMTP test email

7. Monitor your site’s emails with Gravity SMTP’s reporting and logging features

Another nice thing about using Gravity SMTP is that it can also help you log and monitor your site’s email sending.

This can help you stay on top of everything that’s happening and catch any issues before they become a problem.

Email logging

To view your site’s email log, you can go to SMTP → Email Log.

The main email log will show a list of all of the emails that your site has sent, including the source (e.g. the core WordPress software or a plugin that you’re using).

You can also use the Actions column to view more technical details or a preview of the email’s content/design.

By default, Gravity SMTP will permanently log all of the emails that your site sends. However, if you want to shorten this period (or completely disable the email logging feature), you can do so by going to SMTP → Settings → Logging.

Gravity SMTP email logging settings

View reports

In addition to alerts and email logging, Gravity SMTP also offers multiple in-dashboard tools to help you keep an eye on your site’s emails.

To do this, go to SMTP → Dashboard to view high-level reports about your site’s email usage:

Gravity SMTP dashboard

For more information on getting started with Gravity SMTP and SendGrid, check out this documentation.

8. Set up a backup email sending service (optional)

At this point, your site is properly configured to send all of its transactional emails using SendGrid, and you can consider this tutorial finished.

However, one of the nice things about Gravity SMTP is that it gives you some additional tools to ensure the reliability of your site’s transactional emails.

Firstly, Gravity SMTP also lets you set up an optional backup email sending service. If an email ever fails to send with SendGrid for some reason, Gravity SMTP can automatically resend that email using your backup service.

If you want to set up a backup email sending service, you first need to connect your site to that service. Here are guides for the direct API integrations that Gravity SMTP supports, though you also have the option to use a custom SMTP service:

Once you’ve connected to a service, you can click the three dots icon next to that service in the Integrations list and choose Set As Backup.

Gravity SMTP backup sending method

Secondly, if you want to set up real-time alerts, Gravity SMTP currently supports two methods:

You can set up alerts by going to SMTP → Settings → Alerts and the links above cover tutorials for both methods.

Configure real-time alerts for Resend

Connect WordPress to SendGrid Today

That wraps up our guide on how to use Gravity SMTP to connect WordPress to SendGrid.

With its generous forever-free plan and competitively priced paid plans, SendGrid makes a great option for sending your WordPress site’s emails.

And with Gravity SMTP, you can easily connect your WordPress site to SendGrid, while also accessing helpful features to monitor and test your site’s email configuration (with lots more features on the way).

If you have a Gravity Forms Elite license and you’re ready to get started, install Gravity SMTP and you’ll be up and running with SendGrid email sending in no time.

 

Gravity Forms Newsletter
If you want to keep up-to-date with what’s happening on the blog sign up for the Gravity Forms newsletter!
  • This field is for validation purposes and should be left unchanged.