Skip to content

Easy Digital Downloads Automations

Send an Email When an Easy Digital Downloads Product Is Purchased

You want an email to go out automatically whenever someone buys a download through Easy Digital Downloads — a sale notification to your team, a thank-you to the buyer — without checking EDD's order list. Zapify does this with the A download is purchased trigger and the Send an email action. Easy Digital Downloads is a Zapify PRO integration.

What this automation does

The automation is one trigger plus one action:

  • Trigger: A download is purchased (EDD_PAYMENT_COMPLETED)
  • Action: Send an email (WP_SEND_EMAIL)

When a payment for the download you choose is completed, Zapify fills the email's tokens with the order details and sends it.

Zapify listens on EDD's edd_after_payment_actions signal, which fires once a payment is marked complete. It checks every item in the order, not only the first one, so watching a single download still fires correctly on an order that also contained other products.

Before you start

  • Easy Digital Downloads must be installed and active. Zapify reads your downloads directly from it.
  • Zapify PRO must be active, since Easy Digital Downloads is a PRO integration.
  • You need at least one published download.

PRO feature

Easy Digital Downloads (edd) is a Zapify PRO integration. The trigger requires an active PRO licence.

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. Give the automation a clear name, such as Notify team on Easy Digital Downloads sale.

Create a new automation

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

  1. Click Add Trigger.

Add a trigger

  1. Choose Easy Digital Downloads as the app.

Select Easy Digital Downloads

  1. Select the trigger A download is purchased.

Select A Download is Purchased

  1. In the trigger's Download field, pick the specific download, or leave it on Any download to run for every sale.

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 values from the order.

Field Required What it does
To Yes Recipient address. Comma-separate several, or insert a token — for example the customer's email.
Subject Yes The subject line.
Format Yes HTML (default) or Plain text.
Body Yes The message. Insert tokens to include order details.
Cc / Bcc No Extra recipients.
From name / From email No Override the sender.
Reply to No Set where replies go.

For example:

  • To: sales@example.com
  • Subject: New order — {{trigger:DOWNLOAD_NAMES}}
  • Body: A new order has come in. Order total: {{trigger:ORDER_TOTAL}}. Customer: {{trigger:CUSTOMER_NAME}} ({{trigger:CUSTOMER_EMAIL}}).

Complete the Send an Email Action

Step 5: Set the steps Live and save

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

Set the automation live

Order tokens you can use

Token What it holds
Order ID The EDD payment ID.
Order total The order total.
Customer email The buyer's email address.
Customer name The buyer's name.
Download IDs The IDs of the downloads on the order.
Download names The names of the downloads on the order.

How to test it

  1. Place a test purchase of the selected download, using EDD's test/manual payment gateway if you have one configured.
  2. Check the recipient inbox for the email.
  3. If nothing arrives, open Zapify → Logs to see whether the run fired.

Conclusion

With the A download is purchased trigger and the Send an email action, Zapify notifies your team of every sale, or thanks the buyer, without checking Easy Digital Downloads manually. See Zapify Free vs Pro to compare what's included with PRO integrations like this one.

FAQs

Does this fire once per order, or once per download in the order?

Once per order, for each download the automation is watching. If the order contains several matching downloads, the trigger still fires once — the Download names token lists all of them.

Is this feature free?

No. Easy Digital Downloads is a Zapify PRO integration, so the trigger requires an active PRO licence.

Can I watch for a purchase of any download?

Yes. Leave the Download field set to Any download.

Can I include the order total and customer details in the email?

Yes, using the {} token options for order total, customer name, customer email, and download names.

Why didn't the email send?

First confirm both the trigger and action are set to Live and the automation is saved. Then check Zapify → Logs for 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. This automation is configured entirely through Zapify's trigger and action settings.

Was this page helpful?