🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 27, 2026

How to Send Gravity Forms Notifications Through Gmail for Better Deliverability

GravityExtra
How to Send Gravity Forms Notifications Through Gmail for Better Deliverability

Form notifications are only useful if they arrive. If your Gravity Forms emails land in spam, get throttled by your host, or vanish without a trace, the leads and messages your forms collect never reach you. One of the most reliable fixes is to stop sending through the default PHP mailer and send through an authenticated mailbox instead. This guide shows how to deliver your Gravity Forms notifications through the Gmail API with the Gravity Forms Gmail Premium Add-on, so they go out from a real Gmail or Google Workspace account with an established sending reputation.

Why default WordPress email struggles

By default WordPress sends mail with wp_mail, which calls PHP’s mail function on your server. That message has no authentication tied to your domain, often comes from an address like wordpress@yourdomain.com that nobody recognises, and is sent from a shared host IP that may already be flagged for spam. Mailbox providers increasingly reject or quietly junk this kind of unauthenticated mail. The result is the familiar complaint: “the form works, but I never get the email.”

Sending through the Gmail API solves this at the source. The message leaves from a genuine Gmail or Workspace mailbox, signed and authenticated by Google, from an address that real people already correspond with. Deliverability improves immediately, and you get the sent copy in your mailbox’s Sent folder as a bonus.

What the Gmail add-on does

The add-on hooks into the moment Gravity Forms is about to send a notification and, for the notifications you choose, delivers them through the Gmail API’s users.messages.send method instead of wp_mail. It uses your own Google Cloud OAuth app, so there is no shared account and no per-message fee, and it only ever asks for the Gmail “send” permission — it cannot read your mail.

  • Deliver chosen notifications through the Gmail API from a real Gmail or Workspace mailbox.
  • Per-notification routing: all notifications, only the ones you choose, or none.
  • Your own Google Cloud OAuth app — self-serve, with the refresh token and client secret encrypted at rest.
  • Automatic access-token refresh, with a one-time retry if a token is refused mid-send.
  • A From name and a verified send-as address, a test send, per-entry notes, and a fallback to the normal mailer.

Step 1: Create a Google Cloud OAuth app

Because you send from your own mailbox, you first create a free OAuth client in the Google Cloud Console. This is a one-time setup and the Gmail API is free within Google’s normal sending limits.

  1. Create or select a project in the Google Cloud Console.
  2. Under APIs & Services → Library, enable the Gmail API.
  3. Configure the OAuth consent screen and add the Gmail send scope.
  4. Create an OAuth client ID of type Web application.
  5. Add the redirect URI that the add-on shows on its settings page, then copy the client ID and client secret.

The full walkthrough, with every field, is in the add-on documentation.

Step 2: Connect your account

In WordPress, open Forms → Settings → Gmail, paste the client ID and client secret, and copy the authorized redirect URI into your OAuth client. The client secret is encrypted before it is stored. Once both values are saved, a Connect Google account button appears.

The Gmail settings page in Gravity Forms: license key, the Google Cloud OAuth app client ID and client secret, the authorized redirect URI, and a connected Google account
The settings page: paste your OAuth app credentials and connect your Google account.

Click Connect Google account and you are taken to Google’s own consent screen, where you grant the Gmail “send” permission. Google returns you to the settings page, the add-on exchanges the one-time code for a refresh token, encrypts and stores it, and the page shows Connected as your mailbox. From now on the add-on refreshes a short-lived access token automatically whenever it needs to send.

Step 3: Choose which notifications use Gmail

You decide exactly which notifications go through Gmail. Route them all, pick only the important ones, or route none for now. When you choose “only the ones I choose”, a checklist of every notification across every form appears.

The per-notification routing section: a choice of all notifications, only the chosen ones, or none, with a checklist of each forms notifications
Per-notification routing lets you move the notifications that matter to Gmail and leave the rest unchanged.

A common pattern is to route the admin notification on your most important forms — contact, quote requests, support — through Gmail, while leaving low-priority receipts on the default mailer. Notifications you do not route keep working exactly as before.

Step 4: Test and watch the entry notes

Use the Send test box on the settings page to send yourself a message through Gmail and confirm the whole chain works. After that, each entry can keep a note recording that a notification was sent through Gmail (with the Gmail message id) or that it could not be and why.

A Gravity Forms entry showing the Gmail delivery notes confirming each notification was sent through Gmail with its message id
Each entry keeps a record of which notifications were delivered through Gmail.

If Gmail cannot send — a network problem, an expired consent — the add-on falls back to the normal WordPress mailer by default, so a notification is never silently lost. You can instead choose to skip a routed notification when Gmail is unavailable; either way the entry is noted.

How the message is built and sent

Under the hood, the add-on takes the notification Gravity Forms prepared — its recipients, subject, HTML or plain-text body, Reply-To, Cc and any attachments — and assembles a standards-compliant RFC 2822 message on your server. Non-English subjects and sender names are encoded correctly, and attachments are packed into a multipart message. The finished message is then base64url-encoded and posted to the Gmail API, which is exactly the format users.messages.send expects. Because the whole message is assembled locally and only the finished result is handed to Google, you keep full control of what is sent.

The add-on never sends a notification twice. When it successfully hands a message to Gmail, it tells Gravity Forms to skip the normal send for that notification, so recipients get exactly one copy. And because access tokens are short-lived by design, the add-on refreshes them quietly in the background and retries once if a token happens to expire at the moment of sending — a routine event that would otherwise cause an occasional missed email.

How this compares to an SMTP plugin

A traditional approach is to reconfigure WordPress to send all mail over SMTP. That works, but it routes every email on your site through one transport and usually relies on an app password or a third-party relay with its own fees and quotas. Sending through the Gmail API with OAuth is different in two useful ways. First, it is scoped and revocable: you grant only the Gmail “send” permission and can withdraw it at any time, with no long-lived password stored on your site. Second, it is selective: with per-notification routing you choose which Gravity Forms notifications use Gmail and leave everything else untouched, rather than forcing every message on the site through the same pipe.

Is it secure?

Yes. The add-on requests only the Gmail send scope, so it cannot read your email or your contacts. Your refresh token and client secret are encrypted at rest, are never shown again after they are saved, and are never logged. The request hosts are locked, so your token and messages only ever go to Google’s token host and the Gmail API host. You can revoke access at any time from the settings page or your Google account’s permissions page.

Things to keep in mind

  • Google enforces daily sending limits per mailbox — higher for Workspace than for free Gmail — so route high-volume mail thoughtfully.
  • The From address must be the connected mailbox or a verified send-as alias, or Gmail rewrites it.
  • Very large attachments may exceed Gmail’s message-size limit and are skipped or fall back.

Get started

If your Gravity Forms notifications are not reaching the inbox, routing them through an authenticated Gmail mailbox is one of the most effective fixes you can make. Set up your Google Cloud OAuth app, connect your account, choose the notifications that matter most, and send a test — most sites are delivering through Gmail within a few minutes. Get the Gravity Forms Gmail Premium Add-on, and follow the step-by-step setup guide to connect your first mailbox today.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr