Skip to content

WooCommerce Automations

Send an Email When a WooCommerce Product Is Purchased

Want a thank-you or delivery email to go out the instant someone buys a product? Zapify sends it automatically. Combine the free A product is purchased trigger with the free Send an email action, and every qualifying purchase triggers the email you have written, with live order details filled in. No code, and both steps ship in the free plugin.

What this automation does

The automation is one trigger plus one action:

  • Trigger: A product is purchased (WC_PRODUCT_PURCHASED, WooCommerce)
  • Action: Send an email (WP_SEND_EMAIL, WordPress)

When a customer buys a product and the order reaches a paid status, Zapify sends the email you configured.

Before you start

  • WooCommerce must be installed and active. If it is missing, Zapify offers to install it from the trigger picker.
  • Know which product should trigger the email, or leave the trigger on Any product.
  • Have your email subject and message ready.
  • Both the trigger and the action are free.

How to build the automation

Step 1: Create a new automation

  1. In the WordPress admin, go to Zapify → Automations.
  2. Click Add New to open the builder.
  3. Name it clearly, such as Thank customer after course purchase.

Create a new automation

Step 2: Add the "A product is purchased" trigger

  1. Click Add Trigger.

Add a trigger

  1. Choose WooCommerce as the app.

Select WooCommerce as the trigger

  1. Select the trigger A product is purchased.

Select A product is purchased

  1. In the Product field, pick the product whose purchase should start the automation, or leave it on Any to fire for every product. Choosing the product is part of the free trigger.
Field What it does Default
Product The product whose purchase starts the automation. Leave as Any to fire for every product, or pick a specific product. Any

The trigger fires when the order reaches a paid status (such as Processing or Completed), not while it is still Pending payment.

Step 3: Add the "Send an email" action

  1. Click Add Action.

Add an action

  1. Choose WordPress as the app.

Select WordPress as the action

  1. Select Send an email.

Select Send an email

Step 4: Configure the email

Edit the Send an email action

Fill in the email fields. Use the {} token button beside any field to insert live values from the order. To email the customer, click in the To field, click {}, and choose Billing email.

Select the email recipient

Field Required What it does
To Yes Recipient. Insert the Billing email token to email the customer, or type a fixed address to notify staff.
Subject Yes The subject line. Tokens are allowed.
Format Yes HTML (default) or Plain text.
Body Yes The message. Tokens are allowed.
Cc / Bcc No Extra recipients.
From name / From email / Reply to No Override the sender.

For example:

  • To: the Billing email token
  • Subject: Thanks for your order
  • Body: Hi , then the Billing first name token, then — thank you for buying, then the Product names token.

Complete the Send an Email action

Step 5: Set the steps Live and save

Each step has its own switch: Live, Off, or Draft. A new automation starts as a Draft and does nothing until its steps are Live.

  1. Set both the trigger and the action to Live.
  2. Click Save.

Set the automation live

Tokens you can use in the email

The A product is purchased trigger exposes these tokens for the To, Subject, and Body fields:

Token Value
Product IDs IDs of the purchased products
Product names Names of the purchased products
Order ID / Order number Order identifiers
Order status Current order status
Order total / Currency Order value and currency
Order date Date the order was placed
Payment method Payment method used
Items / Number of items Line items and count
Billing email Customer billing email
Billing first name / last name / phone Customer details
Order admin link Link to the order in wp-admin

PRO feature

Choosing which product fires the trigger is free. Deciding whether to run based on other data — order total, quantity, customer role — uses automation Conditions, a PRO feature. See filters and conditions.

How to test it

  1. Place a test order for the product you chose in the trigger, using your own email address as the billing email.
  2. Make sure the order reaches a paid status — mark it Processing or Completed in WooCommerce → Orders if your payment method doesn't do it automatically.
  3. Check the inbox of the address in To for the email.
  4. If nothing arrives, open Zapify → Logs to see whether the automation fired and what the action reported. The email is sent in the background, so it can arrive a moment after the order is paid.

Conclusion

Zapify's free A product is purchased trigger and Send an email action turn every qualifying purchase into an automatic, personalized email. To record something on the order instead of emailing, see add an order note when a product is purchased, or email on any status change with send an email when the order status changes.

FAQs

Is emailing customers after a purchase free in Zapify?

Yes. The A product is purchased trigger and the Send an email action are both free, and WooCommerce is a free Zapify integration. You can build and run this on the free plugin. Only automation-level Conditions — filtering beyond the trigger's own product selection — require Zapify PRO.

How do I send the email only for one specific product?

In the trigger, set the Product field to that product instead of leaving it as Any. Zapify then fires the automation only when an order containing that product reaches a paid status. Every other purchase is ignored, so unrelated customers never receive the email.

When exactly does the trigger fire?

It fires when the order reaches a paid status — such as Processing or Completed — rather than the moment the customer clicks buy. This ensures the email goes out for real, paid orders and not for orders still sitting in Pending payment or awaiting checkout completion.

How do I email the customer rather than an admin?

In the Send an email action, insert the Billing email token into the To field using the {} token menu. Zapify fills in that order's billing email at run time. To notify staff, type a fixed address instead, or add both by using the Cc or Bcc fields.

Can I include the product name or order total in the email?

Yes. The trigger exposes tokens for Product names, Product IDs, Order number, Order total, Currency, and more. Insert them into the Subject or Body with the token menu, and Zapify replaces each with the real value from the purchase.

Why didn't the email send?

Check that both the trigger and the Send an email action are set to Live (a Draft automation never runs), that the order reached a paid status, and that the purchased product matches the trigger's Product field. Then open Zapify → Logs to see the run. If the run succeeded but no email arrived, the issue is usually the site's mail configuration; an SMTP plugin resolves most delivery problems.

Do I need to write any code?

No. The trigger, the action, and every field are set up visually in the Zapify builder. Once the steps are Live, Zapify and WooCommerce send the email automatically after each qualifying purchase.

Was this page helpful?