Early access Trio MCP · coming soon to your AI assistant Trio MCP · early access Discover
AI for stores

Shopify Flow send email: how to email customers with a variable recipient

13 min readUpdated November 25, 2026By Ylan Colson
TL;DR
  • Send internal email only reaches the fixed addresses you type in. Its recipient field does not accept variables, so keep it for staff and supplier alerts.
  • To reach the customer, use Send marketing email (subscribed customers only), a Send HTTP request to an email API (Grow plan and up), or an app that sends the email for you.
  • Pick the route by the email's primary purpose. Order updates are transactional. Anything that promotes needs marketing consent and an unsubscribe link.

You built a workflow, opened the Send internal email action, typed {{ order.customer.email }} into the recipient field and hit a wall. That is by design. If you want Shopify Flow to send an email to a customer with a dynamic, variable recipient, the internal email action is the wrong tool: Shopify says its recipient field does not accept variables. This guide covers the four routes that do work, which one fits which email, copyable Liquid for each, and the errors people run into along the way.

If you are mapping all your automations, start with our ecommerce marketing automation guide, which explains where Flow sits next to your email tool. This article zooms in on one question: how to get an email out of a Flow workflow and into the right inbox.

Can Shopify Flow send an email to a customer with a variable recipient?

Yes, just not with the action most people try first. Flow gives you several ways to send email, and each one answers a different question: who reads the email, and why are you sending it?

  • Send internal email is built in and works in any workflow. It sends from your store's sender address to the fixed addresses you type. It is built for staff.
  • Send marketing email comes from Shopify Messaging (formerly Shopify Email), Shopify's own email app. It emails the customer the workflow is about, and only if that customer is subscribed to email marketing.
  • Send HTTP request posts to an email provider's API, with the customer's address as a variable. It reaches any address, but deliverability and compliance are yours. It needs the Grow, Advanced or Plus plan.
  • Send order invoice is the one built-in action that emails a customer outside marketing, and its recipient field is yours to set. It only works for orders that use payment terms, so it is a B2B and net-terms tool, not a general one.
  • A third-party app either adds a "send email" action to Flow with a recipient field that takes variables, or runs the customer email flow itself, outside Flow.

Flow itself is a free app on the Basic, Grow, Advanced and Plus plans. So the real question is not "can Flow email customers" but "which route matches this email".

Decision path for sending email from Shopify Flow: staff emails use Send internal email, promotional emails to customers use Send marketing email, order updates use an HTTP request or a Flow email app, recurring customer flows belong in an email app
Three questions decide the route. Illustrative decision path, not a Shopify screen.

Send marketing email vs send internal email: the four routes compared

The two native actions are easy to confuse because both say "email". A simple way to remember them: internal email trusts the address you type, so the address is fixed; marketing email trusts the customer's consent record, so non-subscribers are skipped. Shopify's Send internal email reference says it plainly: because variables can't set the recipient, the action is best used to email staff, and customer emails belong in a marketing automation.

Send internal emailSend marketing emailSend HTTP requestFlow email app
Who receives itFixed addresses you typeThe customer the workflow is aboutAny address, from a variableAny address, from a variable
Variable recipient✗Automatic✓✓
Marketing consent check✗✓You apply the rulesDepends on the app
Shopify planAny Flow planAny Flow planGrow, Advanced, PlusDepends on the app
Best forStaff and supplier alertsPromotions to opted-in customersOrder updates to every buyerOrder updates without code

Which route for which email: 9 common cases

The deciding factor is the email's purpose, not the tool you already have open.

EmailPurposeRoute
Order over $500, alert the teamInternalSend internal email
A SKU sold, notify the supplierInternalSend internal email
Low-rated review approved, alert supportInternalSend internal email
Preorder delayed, tell the buyerTransactionalHTTP request or Flow email app
Cash on delivery, send payment instructionsTransactionalHTTP request or Flow email app
B2B order on net terms, send the invoiceTransactionalSend order invoice
Third order placed, welcome to VIPMarketingSend marketing email or your email app
Five-star review, thank-you with a discountMarketingYour email app's automation
60 days without an order, win-back offerMarketingYour email app's automation

If you are unsure where a message lands, read its subject line and first sentence. If they sell, it is marketing.

Route 1: send internal email with dynamic content for your team

The recipient is fixed, but the subject and message accept Liquid variables. That makes this action ideal for alerts that carry customer details to a person who acts on them. Here is a high-value order alert, step by step:

  1. In your Shopify admin, open the Flow app and click Create workflow.
  2. Select the trigger Order created.
  3. Add a condition on the order's total price, for example greater than or equal to 500.
  4. Add the action Send internal email. Type one or more addresses, separated by commas.
  5. Paste the subject and message below, then turn the workflow on.
Subject:
High-value order {{ order.name }}: {{ order.totalPriceSet.shopMoney.amount }} {{ order.totalPriceSet.shopMoney.currencyCode }}

Message:
New order {{ order.name }} from {{ order.customer.displayName }} ({{ order.customer.email }})
Ships to: {{ order.shippingAddress.city }}, {{ order.shippingAddress.countryCodeV2 }}

Items:
{% for li in order.lineItems %}- {{ li.quantity }} x {{ li.title }}
{% endfor %}
Customer note: {{ order.note }}
Open in admin: https://admin.shopify.com/store/YOUR-STORE/orders/{{ order.legacyResourceId }}

Flow uses camelCase field names from the GraphQL Admin API, so it is totalPriceSet, not total_price. Lists such as line items need a for loop: Flow does not support [0] indexes, and you can't print a list directly. If you would rather describe the workflow in plain English and let Shopify's assistant build it, our Shopify Flow AI prompt examples include alert workflows like this one.

Flow sends these emails from your store's sender email address. If your domain is not authenticated, some inboxes show "via shopifyemail.com". Fix that once in Shopify's sender email settings.

Route 2: send marketing email to the customer who triggered the workflow

The Send marketing email action has no recipient field to fill. It emails the customer the workflow is about, so the variable recipient is built in. The trade-off is consent: Shopify sends marketing automations only to customers subscribed to marketing by default. The one exception in Shopify's documentation is the abandoned checkout email, where you can switch the To field to all customers. For that flow specifically, see our abandoned cart email guide.

You can start from a template on the Automations page in your Shopify admin or build the workflow in Flow. A Flow workflow that includes a marketing activity action also appears on the Automations page, and you can edit it from either place.

The tag, segment, send pattern

When your trigger does not hand Flow a customer, or you want the audience to be explicit, split the job in three:

  1. Tag in Flow. React to the event and add a customer tag such as review-5-star. If the trigger only passes an email address as text, which is common with app triggers, add the Get customer data action with a query like email: followed by the address variable, then loop over the result.
  2. Segment the tag. Create a customer segment: customer_tags CONTAINS 'review-5-star' AND email_subscription_status = 'SUBSCRIBED'.
  3. Send on segment entry. Build a marketing automation on the Customer joined segment trigger. Shopify uses the same trigger for its win-back, birthday and VIP templates.

This gives you a dynamic recipient without code, with consent checked twice. Our Shopify customer retention guide has more segment queries built on the same syntax.

Route 3: send a transactional email to any address with an HTTP request

Some emails must reach every buyer, opted in or not: a delayed preorder, cash-on-delivery payment instructions, a license key. Apart from invoices on orders with payment terms (covered below), Flow has no built-in action for a free-form transactional email, so the clean route is Send HTTP request posting to a transactional email provider. You need the Grow, Advanced or Plus plan, an account with a provider, and your sending domain verified there.

The example below uses Resend's send endpoint. Any provider with a send API works the same way: change the URL, headers and field names to match its documentation.

  1. Store the API key as a secret. In Flow, go to Settings and add a secret, for example with the handle resend_key. Shopify hides secret values in the editor and redacts them from run logs. Managing secrets needs the "Manage connections and secrets" staff permission.
  2. Add a condition so the workflow only runs when the order has a customer email.
  3. Add Send HTTP request with the method POST and the URL https://api.resend.com/emails.
  4. Add the headers and body below.
  5. Set the error handling: Fail on client errors (4XX), so a broken payload shows up in your run history, and Retry on server errors (5XX or 429).

Headers:

Authorization: Bearer {{ secrets.resend_key }}
Content-Type: application/json
Idempotency-Key: preorder-delay-{{ order.legacyResourceId }}

Body:

{
  "from": "Your Store <orders@yourstore.com>",
  "to": [{{ order.customer.email | json }}],
  "subject": "An update on your order {{ order.name }}",
  "text": "Hello,\n\nYour order {{ order.name }} is taking longer than planned. It will ship within 10 days and we will email the tracking link as soon as it leaves.\n\nIf you would rather cancel, reply to this email and we will refund you in full.\n\nThe Your Store team"
}

Two details make this production-ready. First, the json filter: it adds the quotes and escapes characters that would break the request, so do not wrap the variable in quotes yourself. Use it on any free-text value, such as a name or a note. Second, the Idempotency-Key header. Flow waits up to 30 seconds for a response, and with Retry on, it keeps retrying for up to 24 hours. A request that reached the provider but answered slowly can therefore be sent twice. Resend will not send a second email for the same key within 24 hours, which matches Flow's retry window. Both limits come from Shopify's Send HTTP request reference, linked in the cards below.

30 sHow long Flow waits for an HTTP response before it retries laterSource: Shopify Help Center, Nov 2026
24 hHow long Flow keeps retrying a request set to RetrySource: Shopify Help Center, Nov 2026
$53,088Maximum US penalty per email that violates CAN-SPAMSource: FTC CAN-SPAM compliance guide, 2025
Preview of a preorder delay email sent from Shopify Flow through an email API, with notes on the variable recipient, the idempotency key and the reply address
What the HTTP request above delivers. Illustrative example with a fictional store.

The native exception: Send order invoice for orders with payment terms

If you sell on net terms, check this action before you write any code. Send order invoice emails an invoice for the order that started the workflow, with four fields: recipient email address, sender (the store email or a staff account email), subject and an optional custom message. The recipient field is the one Send internal email lacks. Shopify's own B2B template fills it from email addresses stored in metafields on the company location, so the invoice can reach an accounts-payable inbox as well as the buyer.

The catch is in Shopify's Send order invoice reference: you must be using payment terms for the customer. On a regular paid order, the action is not the answer. Its sibling, Send payment reminder, is even narrower: it goes to the main contact of a B2B company, from the Payment schedule is due trigger.

Keep it transactional, or it becomes marketing

The address may be dynamic, but the law looks at the content. Under the FTC's CAN-SPAM compliance guide, an email is transactional when it only facilitates or confirms a purchase the customer already agreed to, delivers the goods, or gives warranty, recall or safety information. The FTC reads those categories narrowly. A message counts as commercial if its subject line would lead a reasonable reader to expect an ad, or if the transactional part does not appear mainly at the beginning. Rules differ outside the US, so check the ones that apply to your customers.

Slide to compare a delay notice that drifts into promotion with one that stays on the order:

Transactional
An update on your order #1042

Your order #1042 will ship within 10 days instead of 3.

We will email the tracking link as soon as it leaves.

Prefer to cancel? Reply and we will refund you in full.

View my order
Mixed
New arrivals are here (plus an update on #1042)

Our winter collection just dropped. Take 20% off with code WINTER20.

Also, your order #1042 is delayed by about 10 days.

Shop the collection
Drag to compare
Illustrative example. The first version opens with a promotion, so it likely reads as commercial and should go through a marketing route with consent and an unsubscribe link.

Route 4: let an email app own customer emails, and keep Flow for operations

Two kinds of apps fill the gap without code.

Flow email apps add a "send email" action to Flow, often sending through your own SMTP or Gmail account, with a recipient field that accepts variables. Before you install one, check four things:

  • Which address customers see as the sender, and whether replies reach a real inbox.
  • Whether the free tier is counted per month or as a lifetime total of actions.
  • How long send logs are kept, so you can prove an email went out.
  • Whether it adds an unsubscribe link when you use it for marketing.

Email marketing apps are the better home for recurring customer emails: welcome series, cart recovery, the post-purchase email, review requests and win-back. Consent, unsubscribe links, templates and measurement are built in, and you do not maintain an API call. Our Shopify email automation guide compares what Shopify's built-in tools cover with what a dedicated app adds.

What Trio does with Shopify Flow

Trio is our app, so here is exactly what it does and does not do. Trio adds one trigger to Flow, "new approved review". There are no Trio actions in Flow, so a workflow cannot ask Trio to send an email. Trio sends customer emails itself, from the automations in Trio's email marketing module, on Starter and up: welcome, post-purchase, abandoned checkout, win-back, birthday, VIP tier change, points expiry, thank-you after a review, and the review request. Marketing emails respect Shopify marketing consent and carry an unsubscribe link.

Trio automations page in a demo store listing welcome, post-purchase, abandoned cart and win-back scenarios with on and off switches
Trio's automations page. Demo store with sample data, not real results.

Where Flow still helps is routing review events to your team. Start from Trio's new approved review trigger, add a condition on the rating, then send an internal email to support with the product and the review text. The trigger passes its values as text, so test the rating with "equal to" 1 or 2 rather than "less than". It also hands Flow the reviewer's email as plain text, not a customer object, which is exactly the case where the tag, segment, send pattern above starts with Get customer data. Trio's own unhappy-customer rescue already alerts you privately about low ratings and prepares an apology email with a personal discount code for your approval, so the Flow version is for when the alert must reach another team or tool. More on that in our guide to automating review replies and on the Trio reviews page.

Paid plans start at $29 per month with a 14-day free trial; see Trio pricing for what each plan includes.

Fixing the email address variable error and other failed runs

Most failed Flow emails come down to one of seven causes. Find your symptom, then apply the fix.

What you seeCauseFix
Send internal email won't take {{ order.customer.email }} as the recipientThe field does not accept variablesUse a staff address, or switch to route 2, 3 or 4
"Email not sent because [customer] is not subscribed to marketing"Send marketing email checks consentOrder update: route 3 or 4. Promotion: only subscribers get it
"Shopify only sends emails to customers who are signed up for marketing emails"The same consent check, shown in the editorSame as above
Emails arrive "via shopifyemail.com"Sender domain not authenticatedAuthenticate your domain in Shopify's sender email settings
A variable prints emptyThe value is not available at that step, or you used [0] or .sizePick it from Add a variable, loop over lists, use the size filter
The HTTP request fails with a 4XXMalformed JSON or a wrong API keyUse the json filter on free text and check the secret
The customer gets the same email twiceFlow retried after a timeout or a 5XXSend an Idempotency-Key tied to the order

The two quoted messages are the wording merchants report in the Shopify Community; Flow's run history shows the exact text for your store.

Test the workflow before you turn it on

Flow runs silently. A broken email workflow can fail for weeks before a customer complains, so test it the way it will fail.

Checklist for a Shopify Flow email workflow: test order to your own address, a name with quotes, run history, a forced retry, consent, sender domain
Run these six checks once per workflow, and again after any edit.

Then open the email on a phone and read it as the customer would. If you would not be glad to receive it, rewrite it before anyone else does.

Start with the smallest route that does the job: an internal alert for your team, Send marketing email for subscribers, an HTTP request for order updates, and an email app for everything that repeats. Flow is at its best when it moves information; leave the customer conversation to the tool built to send, measure and respect consent.

Frequently asked questions

Can Shopify Flow send an email to a customer?
Yes, but not with Send internal email, whose recipient field only takes fixed addresses. Use Send marketing email for subscribed customers, Send order invoice for orders with payment terms, a Send HTTP request to an email provider's API for other transactional messages, or an app that adds an email action with a variable recipient.
Why can't I put the customer email variable in Send internal email?
Shopify's documentation says variables can't be used in the recipient field of Send internal email. The action is meant for staff. You can still use variables in the subject and message, so the customer's address can appear in the body of an alert sent to your team.
What is the difference between Send marketing email and Send internal email in Shopify Flow?
Send internal email goes to fixed addresses you enter, usually your team, with no consent check. Send marketing email goes to the customer the workflow is about and only if that customer is subscribed to email marketing. One is for operations, the other for promotions.
Why does Flow say the customer is not subscribed to marketing?
The Send marketing email action checks the customer's marketing consent and skips anyone who has not subscribed. If the message is an order update, send it through a transactional route instead, such as an HTTP request to an email API or a Flow email app.
Can I send transactional emails from Shopify Flow?
Only in one narrow case. Send order invoice emails an invoice to the address you set, but only for orders that use payment terms. For anything else, such as a delay notice, the usual routes are a Send HTTP request to a transactional email provider (Grow, Advanced and Plus plans) or an app that adds a send email action to Flow.
Which Shopify plan do I need to send emails from Flow?
Shopify Flow is a free app on the Basic, Grow, Advanced and Plus plans, and Send internal email works in any workflow. The Send HTTP request action needs the Grow, Advanced or Plus plan.
Can I send a Flow internal email to several people?
Yes. Type the addresses in the Email address field separated by commas. They stay fixed for every run, so use a shared inbox if the right person changes often.
Why do my Flow emails show via shopifyemail.com?
Flow sends from your store's sender email address. If your domain is not authenticated, some inboxes show the message as sent via shopifyemail.com. Authenticate your domain in Shopify's sender email settings to fix it.
Should I subscribe a customer to marketing for a moment so the Flow email goes through?
No. It falsifies the consent record you may need to show later, and the customer starts receiving your campaigns. Send order updates through a transactional route and keep marketing for people who opted in.
Can Trio send an email from a Shopify Flow workflow?
No. Trio adds one trigger to Shopify Flow, new approved review, and no Flow actions. Trio sends customer emails from its own automations on Starter and up, and you can use its trigger to start your own workflow, such as a staff alert.
Ylan Colson

Ylan Colson is the founder of Trio, a Shopify app for product reviews, email marketing and loyalty, made in France.

Read nextShopify Email Automation: The Complete Setup Guide (2026)

Related articles

Install for free