tr Skip to content

When a WooCommerce order completes, email the customer a secret link with their delivery details

When a WooCommerce order is set to completed, FlowMattic wraps the delivery details you map from the order in an expiring Share Secrets link and emails that link to the customer.

WooCommerce Share Secrets Email

3 steps Setup ~5 min Used on 1.9k sites Free to import

The When a WooCommerce order completes, email the customer a secret link with their delivery details workflow on the FlowMattic canvas, with 3 steps across WooCommerce, Share Secrets, Email
The workflow as it appears in the builder after import. Each step opens for editing.

What this workflow does

Some orders end with information you would rather not leave in a plain email: login details for a set-up account, an access code, a licence key or a private download location. Pasting those into a normal message leaves them sitting in the customer's inbox for good. This workflow sends a link to the details instead, through Share Secrets, which creates secure links that expire.

The WooCommerce trigger fires when an order's status is set to completed and passes the order's data on. The Share Secrets Create Secret Link step then creates the expiring link. It ships unmapped, so after import you map what the secret should hold. That has to come from the order: a field, order meta or note where your store keeps the delivery details. If the details live somewhere else, add a step before this one that fetches them.

The email itself goes out through FlowMattic's Email module, using either WordPress mail or an SMTP account you add. It also ships unmapped: map the billing email as the recipient, write the subject and body, and include the secret link from the previous step.

Place a test order, mark it completed, and open Task History to check the secret's content and the email before customers receive it.

Account credentials for a done-for-you service

An agency that sets up hosting or software accounts for buyers stores the login on the order, and the customer receives an expiring link to it when the order is completed.

Access codes for digital products

A shop selling course or membership access saves each buyer's code in order meta and sends it through a secret link rather than in the email body.

Private download locations

A designer delivering custom files adds the private folder address to the order and completes it, and the client gets a link that stops working after it expires.

How this workflow runs

What happens at each step once the workflow is on, and what you need before you import it.

  1. Step 1Trigger
    WooCommerce Order Status Set to Completed

    Fires when an order's status is set to completed in WooCommerce. The order's data, including billing details, line items and meta, becomes available to map.

  2. Step 2Action
    Share Secrets Create Secret Link

    Creates an expiring Share Secrets link holding the delivery details. The step ships unmapped, so map the order field or meta where your store keeps those details.

  3. Step 3Action
    Email Send Email

    Emails the secret link to the customer with FlowMattic's Email module. Map the billing email as the recipient, write the message, and include the link from step 2.

What you need

  • FlowMatticCore
  • WooCommerce PluginPlugin

After importing, map your own data. To keep the template universal, not every step is pre-filled. Open each step in the builder and connect your accounts and fields (channels, lists, sheets, recipients) before you switch the workflow on.

Make it yours

Changes worth making after you import it.

  • Put a Filter between the WooCommerce trigger and the Share Secrets step that continues only when the order field holding the delivery details is not empty, so customers never get a link to an empty secret.
  • Tell the customer in the email that the link expires, so they save the details somewhere safe before it stops working.
  • Use your SMTP account in the Email step rather than WordPress mail if your site's emails tend to land in spam.

Questions about this workflow

Where does the secret's content come from?

From whatever you map in the Create Secret Link step. The template leaves it empty, so point it at the WooCommerce order field or meta that holds the delivery details.

What happens when the customer opens the secret link after it expires?

Share Secrets links are built to expire, so the details are no longer shown. To send fresh ones, set the order to another status and back to completed, which runs the workflow again with a new link.

What if I mark the same order completed twice?

The trigger fires each time the status is set to completed, so changing it away and back sends a second email with a new secret link.

Can the email go out through Gmail instead?

Yes. Enter Gmail's SMTP details in the Email step, or swap the step for the Gmail app's Send Email action and map the same recipient and link.

Import this workflow into your WordPress site

Download the JSON, import it from the Workflows screen and connect your accounts. Every run stays on your server, with no per-task fees.

30-day money-back guarantee Unlimited workflows and runs Self-hosted

Customers who run it every day

Rated 4.8 out of 5 by customers
Read more reviews

Easy to use, familiar UI for automating all kinds of wordpress tasks. Integrating all our plugins together is key and flowmattic fits the job perfectly.

Verified User in Marketing and Advertising

Great product, saves a lot of money on automation subscription. Also great support and response from the team.