How to Send Emails from Shopify Flow Using Brevo
Shopify Flow can automate a lot, but it can’t send a custom email on its own: no order confirmations in your own words, no internal alerts, no win-back messages outside Shopify’s default notifications. MailAction fixes that with Send transactional email and Send marketing email actions that route each message through an email provider you choose.
Brevo (formerly Sendinblue) is an email marketing and transactional email service with a free plan of 300 emails a day. If you already use Brevo for newsletters, your Flow emails can go out from the same account and sender. MailAction connects to Brevo with an API key and records whether each email was delivered, bounced, or marked as spam. The steps below take you from a new Brevo account to your first email sent from a Flow workflow.
What You'll Need
- A Shopify store on a plan that includes Shopify Flow
- MailAction installed on your store
- A Brevo account (the free plan works to get started)
- A sender email address you can receive mail at, or a domain you can add DNS records to
Step 1Create a Brevo Account
Go to brevo.com and sign up. You don’t need a credit card for the free plan.
The free plan sends up to 300 emails a day, enough to connect and test MailAction. That limit is shared between transactional and marketing email, and free-plan emails carry a small “Sent with Brevo” footer. Paid plans raise the limit and remove the footer. Check Brevo’s pricing page for current plans.
Step 2Verify Your Sender
Brevo only sends from addresses it knows you control. In Brevo, go to Settings, then Senders, domains, IPs. You can verify a sender in two ways.
To verify a single address, add the From address you want to use. Brevo emails it a code or a confirmation link. You can’t send from the address until you confirm it.
To authenticate a domain, add your domain and copy the DKIM and DMARC records Brevo shows into your DNS settings. Once the domain is authenticated, you can send from any address on it. Use this for real sending, because Gmail and Yahoo expect mail from authenticated domains.
If your sender is a Gmail, Outlook, or Yahoo address, Brevo replaces it with an address like [email protected] so the email passes authentication. These emails often land in spam. Use an address on your store’s own domain when you can.
Step 3Create an API Key
In Brevo, go to Settings, then SMTP & API, and open the API keys & MCP tab. Create a new API key.
Give the key a name, like “MailAction”. Under Access, choose Full. MailAction uses the key to send email, set up delivery tracking, and check your senders, and a restricted key can block some of these. Copy the key when Brevo shows it. It starts with xkeysib-.
The SMTP tab on the same page has SMTP keys, which start with xsmtpsib-. Those don’t work here. MailAction needs the API key.
Step 4Install MailAction on Your Shopify Store
Install MailAction from the Shopify App Store and accept the requested permissions.
On first launch, MailAction shows a short setup checklist: set your sender name and email, connect a provider, and send a test email. The next step covers connecting Brevo.
Step 5Connect Brevo to MailAction
In MailAction, open Settings, find Email delivery, and click Manage providers to open the Connect email provider dialog.
Pick Brevo from the provider list and paste your API key. To send from a different name or address than your sender details, turn on Override sender and fill those in.
Click Connect. MailAction checks the key, sets up delivery tracking in your Brevo account, and checks that Brevo can send from your address. If the address isn’t verified yet, you’ll see a warning. You can verify it in Brevo in another tab and then select Check verification, or go back and use a different address.
Whichever provider you connect first becomes your Primary, and MailAction sends all email through it. You can connect a second provider later as an automatic Fallback. That’s worth doing on the free plan, because the daily limit is easy to reach.
Step 6Create Your First Flow Trigger
Open Shopify Flow, create a new workflow, and pick a trigger (Order created is a common one to start with). Add the Send transactional email action. It shows up in the action list once MailAction is installed.
Fill in the action’s fields: the recipient’s email address (this can come straight from the trigger, like the customer’s email), a subject line, and the body, which is the HTML content of the email. There’s also an optional preview text field for the snippet shown in inbox previews. For the body, you can write plain HTML or use Liquid to pull in order details, customer names, and other data from the workflow.
For promotional emails, use Send marketing email instead. It only sends to customers who are subscribed to email marketing in Shopify, and every email gets an unsubscribe link.
Save the workflow and turn it on.
Step 7Test Your Setup
Before you rely on a live trigger, use the Send test email button in MailAction’s settings. It confirms Brevo is connected correctly and shows you where the email lands.
Once the test email arrives, run your Flow workflow under real conditions, like placing a test order. Then check MailAction’s sent emails log to confirm the email went out through Brevo and to see its delivery status.
Step 8Already Using Brevo over SMTP?
smtp-relay.brevo.com, port 587, your SMTP login as the username, and an SMTP key as the password. Over SMTP, MailAction can’t track delivery, so we recommend the API key connection above. To switch, connect Brevo with an API key, make it your Primary, and remove the SMTP connection.Common Issues
“Key not found” or “unauthorized” when connecting
- Make sure you pasted the API key (starts with
xkeysib-) from the API keys & MCP tab, not an SMTP key (starts withxsmtpsib-) - Brevo API keys expire on the date you picked when you created them, and after 90 days without use. If the key expired or was deleted, create a new one and update it in MailAction’s provider settings
“We have detected you are using an unrecognised IP address”
- Your Brevo account only accepts requests from authorized IP addresses. In Brevo, go to Security, then Authorized IPs, and add
44.252.54.196, MailAction’s sending address. Then connect again
“Sending has been rejected because the sender you used is not valid”
- The From address has to be a verified sender or use an authenticated domain. Add and verify it under Settings, then Senders, domains, IPs
- Check that MailAction’s sender details, or your Override sender fields, match a verified sender exactly
Emails arrive from a @brevosend.com address instead of yours
- Brevo does this when your sender is on a free email domain like gmail.com, or on a domain that isn’t authenticated. Use an address on your own domain and authenticate the domain under Senders, domains, IPs
“not_enough_credits” or emails stop sending
- Your Brevo account ran out of email credits. On the free plan the limit is 300 emails a day, shared with your marketing campaigns
- Buy credits or upgrade in Brevo, or connect a second provider in MailAction as a Fallback so emails keep going out
Delivery status shows “Blocked”
- The recipient is on your Brevo blocklist, usually because they unsubscribed from your Brevo emails, an earlier email hard bounced, or they reported spam. Brevo doesn’t send to blocklisted addresses
- If you’re sure the address is fine, remove it from the blocklist in your Brevo contacts and send again