🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Gmail Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Create your Google Cloud OAuth app
  4. The settings page
  5. Paste your client ID and secret
  6. Connect your Google account
  7. Choose the sender
  8. Choose which notifications go through Gmail
  9. Send a test message
  10. If Gmail cannot send
  11. The entry record
  12. How delivery works
  13. Security and privacy
  14. Limits to keep in mind
  15. Troubleshooting
  16. The Connect button does not appear
  17. Google did not return a refresh token
  18. A notification did not arrive

Video walkthrough

Gravity Forms Gmail Add-On Setup Guide: Google OAuth App, Routing and Fallback (WordPress Side)
Video setup guide: Gravity Forms Gmail Watch on YouTube

The Gravity Forms Gmail Premium Add-on delivers the Gravity Forms notifications you choose through the Gmail API, sent from a real Gmail or Google Workspace mailbox, instead of the default WordPress mailer. Form notifications that go out through an authenticated Gmail mailbox are far more likely to reach the inbox and far less likely to be marked as spam or silently dropped by your host, because Google signs and sends them from an address that already has a sending reputation.

The add-on uses your own Google Cloud OAuth app. You create an OAuth client in the Google Cloud Console, grant the Gmail “send” permission once on the consent screen, and the add-on stores the resulting refresh token and quietly refreshes a short-lived access token whenever it needs one. There is no GravityExtra-held account in the middle and no per-message fee. Your refresh token and client secret are encrypted before they are stored on your site, and the add-on only ever contacts the Google token host and the Gmail API host.

What you need

  • WordPress with Gravity Forms 2.9 or newer.
  • PHP 7.4 or newer.
  • An active license key for this add-on.
  • A Google account — a normal Gmail account or a Google Workspace mailbox — that you want notifications to be sent from.
  • Access to the Google Cloud Console, where you create the free OAuth client the add-on uses.

If Gravity Forms is missing or older than 2.9 the add-on shows a notice in the WordPress admin and does nothing else, so notifications are never left in a half-configured state.

Create your Google Cloud OAuth app

Because the add-on sends from your own mailbox using your own Google app, the first step is a one-time setup in the Google Cloud Console. It takes a few minutes and costs nothing: the Gmail API is free to use within Google’s normal sending limits.

  1. Sign in to the Google Cloud Console and create a project (or pick an existing one).
  2. Open APIs & Services → Library, search for the Gmail API and enable it for the project.
  3. Open APIs & Services → OAuth consent screen. Choose the user type that matches your account (Internal for a Workspace organisation, otherwise External), fill in the app name and support email, and add the Gmail send scope.
  4. Open APIs & Services → Credentials, click Create credentials → OAuth client ID, and choose the application type Web application.
  5. In Authorized redirect URIs paste the exact redirect URI shown on the add-on’s settings page (see below), then save.
  6. Copy the client ID and client secret Google shows you.

The redirect URI must match exactly, including the query string, or Google will refuse to return you to the settings page after you consent. The add-on prints the exact value to copy, so you do not have to construct it by hand.

The settings page

Install and activate the add-on like any plugin, after Gravity Forms, then open Forms → Settings → Gmail. This one page holds the license key, your Google Cloud OAuth app details, the connection, the sender, which notifications are routed through Gmail, and a test send.

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: your OAuth app credentials, the redirect URI to copy, and the connected Google account.

Paste your client ID and secret

Paste the client ID and client secret from your OAuth client. The client secret is stored encrypted at rest, so the plain value is never left sitting in the database; after it is saved it is shown masked, and you can replace it at any time by typing a new one. The Authorized redirect URI is shown right here — copy it into your OAuth client in the Google Cloud Console if you have not already.

Connect your Google account

Once a valid client ID and secret are saved, a Connect Google account button appears. Click it and you are sent to Google’s own consent screen, where you grant the Gmail “send” permission to your app. Google then returns you to the settings page and the add-on exchanges the one-time code for a refresh token, which it encrypts and stores. The page now shows Connected as your mailbox address. To switch accounts or stop sending through Gmail, use Disconnect, which revokes the token with Google and forgets it on your site.

Choose the sender

Messages are sent from the connected mailbox. You can set a From name that recipients see, and a From address that the connected account is allowed to send as. Leave the address empty to use the connected mailbox itself. If you enter an alias, it must be a verified “send mail as” address in that Gmail account, otherwise Gmail will rewrite the From header to the real mailbox.

Choose which notifications go through Gmail

You are in control of exactly which notifications use Gmail. The routing section offers three choices: send all notifications through Gmail, send only the notifications you choose, or send none for now and keep the normal WordPress mailer. When you pick “only the ones I choose”, a checklist of every notification on every form appears, so you can route, say, the admin notification on your contact form through Gmail while leaving a low-priority receipt on the default mailer.

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: all, only the notifications you pick, or none, with a checklist across every form.

Notifications you do not route through Gmail keep working exactly as before through wp_mail, so you can move your most important emails to Gmail first and leave the rest unchanged. Inactive notifications are listed too, marked so, so the choice is always clear.

Send a test message

At the bottom of the settings page is a Send test box. Enter any address and the add-on sends a short message through Gmail using the sender settings above. A green result means the connection, the token refresh and the Gmail API are all working; a clear message tells you what to fix otherwise. Run the test once after you connect, so you learn about a problem here rather than from a missing notification later.

If Gmail cannot send

Delivery through a third-party API can occasionally fail — a network blip, an expired consent, a temporary Google error. You decide what happens then. The default is to fall back to the normal WordPress mailer, so the notification still goes out the usual way and is never lost. If you would rather a routed notification only ever go through Gmail, you can instead choose to skip it when Gmail cannot send; either way the entry keeps a note explaining what happened.

The add-on also handles the common case where an access token is refused in the middle of sending: it refreshes the token once and retries automatically, so a routine token expiry never turns into a failed notification.

The entry record

Each entry can keep a note of what happened: that a notification was sent through Gmail (with the Gmail message id), or that it could not be and why. You can set this to every notification, only problems, or never. The notes sit alongside the entry’s other activity, so you always have a trail of which notifications were delivered through Gmail.

A Gravity Forms entry showing the Gmail delivery notes confirming each notification was sent through Gmail with its message id
An entry with its Gmail delivery notes: each routed notification is recorded with its Gmail message id.

How delivery works

When Gravity Forms is about to send a notification, the add-on checks whether that notification is routed through Gmail. If it is, the add-on builds the message as a standards-compliant RFC 2822 message — From, To, Cc, Reply-To, Subject (encoded for non-English text), the HTML or plain body, and any attachments as a multipart message — then base64url-encodes it and posts it to the Gmail API users.messages.send endpoint with a short-lived access token. The normal send is then skipped so the notification is not sent twice. Everything is built and encoded on your server; the only thing sent to Google is the finished message.

Security and privacy

Your refresh token and client secret are encrypted at rest in an authenticated envelope, are never shown again after they are saved, and are never written to a log or stored with an entry. The add-on requests only the Gmail send scope — it cannot read your mail, your contacts or anything else in your account. The request hosts are locked, so the token and the message are only ever sent to Google’s token host and the Gmail API host and nowhere else. You can revoke the add-on’s access at any time from the settings page or from your Google account’s permissions page.

Limits to keep in mind

  • Google applies its own daily sending limits per mailbox (higher for Google Workspace than for a free Gmail account). High-volume sites should route only their important notifications through Gmail and watch those limits.
  • Very large attachments are skipped rather than sent; Gmail has its own message-size limit, and the add-on will fall back or note the entry if a message is too big.
  • The From address must be the connected mailbox or a verified send-as alias, or Gmail rewrites it.

Troubleshooting

The Connect button does not appear

Save a valid client ID (it ends with .apps.googleusercontent.com) and a client secret first; the button only shows once both are stored.

Google did not return a refresh token

This happens when the app was already authorised once without offline access. Remove the app at your Google account’s permissions page and connect again; the add-on always asks for offline access and forces the consent prompt so a refresh token is issued.

A notification did not arrive

Open the entry and read the Gmail note, run the test send, and check the “last problem” message on the settings page. The most common causes are an expired consent (reconnect the account) and a From address the mailbox is not allowed to send as.

Still need help?

Our support team answers tickets every day, usually within a few hours.

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