Gmail logo

How to Send Emails from Shopify Flow Using Gmail or Google Workspace

Shopify Flow can’t send a custom email on its own. MailAction adds a Send transactional email action to Flow and sends each message through an email provider you connect, and Gmail is one of them. It works with a personal @gmail.com account and with a Google Workspace mailbox on your own domain.

There are two ways to connect Gmail. Which one you need depends on the address your customers should see in the From line.

What You'll Need

Option 1

Send From Your Own Gmail or Google Workspace Address

This is the quickest setup and the right one for most stores. You sign in with Google, and MailAction gets permission to send email from that account. It can only send. It can’t read, change or delete anything in your mailbox, and you can remove its access at any time from your Google Account.

Emails go out from the address you sign in with. If you want customers to see a different address, set that up with option 2 after you connect.

Step 1Pick the Account You'll Send From

Sign in with the account whose address should appear in the From line. On Google Workspace, a shared mailbox like [email protected] keeps automated mail out of someone’s personal inbox. For a small store, your own @gmail.com address is fine.

Step 2Open the Connect Dialog in MailAction

In MailAction, open Settings and click Add provider. In the Connect email provider dialog, choose Gmail (connect account).

You can also set a Sender name here, such as your store name. It’s optional.

Step 3Sign In with Google

Click Connect Gmail account. A Google window opens. Pick the account and review what MailAction asks for.

Tick the box next to Send email on your behalf, then click Continue. Google sometimes shows that box unticked, and MailAction can’t connect without it.

The window closes and MailAction shows the account as connected. The first provider you connect becomes your Primary, and all email goes through it.

Common Issues When Connecting Your Account

“MailAction needs permission to send email”

  • The Send email on your behalf box was left unticked on the Google screen. Click Connect Gmail account again and tick it this time

The Google window didn’t open, or nothing happens after signing in

  • Your browser may have blocked the pop-up. Allow pop-ups for admin.shopify.com, or use the Open Google sign-in link MailAction shows while it waits
  • Keep the MailAction tab open until the Google window closes. MailAction checks for the result in the background

Google says the app is blocked, or that your admin needs to approve it (Google Workspace)

  • Your Workspace admin controls which apps can use Google accounts in your organization. Ask them to allow MailAction under Security → Access and data control → API controls in the Google Admin console
  • If they won’t allow it, choose Gmail (app password) in MailAction instead, as long as the admin permits app passwords

Emails fail with “Gmail access was revoked or has expired”

  • MailAction’s access was removed, usually because the password changed or someone removed MailAction from the Google Account’s connected apps. Open the provider in MailAction and click Reconnect Gmail account

↑ Back to the two options

Option 2

Send From a Different Address

Use this when customers should see an address other than the one you sign in with, for example [email protected]. Gmail only sends from addresses it knows belong to you, so you add the address in Google first. Then you enter it as the From address in MailAction. It works with both Gmail options in MailAction.

On a free @gmail.com account, sending as an address on your own domain takes a few extra steps in Gmail. This guide walks through them.

Step 1Add the Address in Google

Google Workspace: an admin adds the address as an alias for your user in the Google Admin console (Directory → Users → your user → User information → Alternate email addresses). It can take a few minutes, sometimes longer, before the alias works. Then open Gmail as that user, go to Settings → See all settings → Accounts → Send mail as, and add the alias. Google may show it already verified.

Personal Gmail: follow the step-by-step guide. You add the address under Send mail as and confirm a code Google sends to it.

To check it, write a new email in Gmail and pick the address in the From field. If that works, MailAction can use it too.

Step 2Set It as Your From Address in MailAction

Connect Gmail with option 1 if you haven’t yet. Then open Settings in MailAction. Under Email sender details, enter the address as the From email address and click Save.

Common Issues When Sending From Another Address

Emails arrive, but from your login address instead of the alias

  • Gmail replaces any From address it hasn’t verified with your login address. Check that the alias appears under Send mail as in Gmail settings for the account you connected
  • Check that the From email address under Email sender details matches the alias exactly

↑ Back to the two options

After You Connect Gmail

These steps are the same for both options.

Step 1Send a Test Email

Click Send test email. You’ll find it in the connect dialog right after connecting, and on MailAction’s home page. It confirms the connection works and shows you where the message lands. Look in the account’s Sent folder too: Gmail keeps a copy of every email MailAction sends.

Step 2Add the Action to a Flow Workflow

Open Shopify Flow, create a workflow and pick a trigger, such as Order created. Add the Send transactional email action. It shows up in the action list once MailAction is installed.

Fill in the recipient (it can come from the trigger, like the customer’s email), a subject line and the HTML body. There’s also an optional preview text field for the snippet inboxes show. You can use Liquid in the body to pull in order details, customer names and other workflow data.

Save the workflow and turn it on. Then place a test order and check MailAction’s sent emails log to confirm it went out.

Common Issues

Sends stop with a daily-limit or “you have reached a limit” error

  • Gmail allows about 500 emails a day on a personal account and about 2,000 on paid Google Workspace. Every recipient counts, and the limit is a rolling 24 hours, not a reset at midnight
  • When you hit the limit, Google pauses sending for up to 24 hours, and emails sent during that time fail
  • New Workspace accounts and trials start at the lower limit for a while
  • Connect a second provider in MailAction as a Fallback so emails keep going out if Gmail stops. If you regularly get close to the limit, Resend or SendGrid are a better fit for your volume

No delivery status for Gmail emails

  • Gmail doesn’t tell MailAction whether an email was delivered, bounced or marked as spam, so the sent emails log only shows whether Gmail accepted it. For delivery tracking, use an API provider like Resend, SendGrid, Mailgun or Postmark