Skip to content

AffiliateWP Automations

How to Send an Email When an Affiliate Application Is Rejected in AffiliateWP

Silence after an application feels worse than a polite no. To send an email when an affiliate application is rejected in AffiliateWP, use Zapify's An affiliate's status changes trigger set to Rejected with the Send an email action. AffiliateWP is a Zapify PRO integration.

What this automation does

The automation is one trigger plus one action:

  • Trigger: An affiliate's status changes (AFFWP_AFFILIATE_STATUS_CHANGED, AffiliateWP)
  • Action: Send an email (WP_SEND_EMAIL, WordPress)

When you reject an affiliate in AffiliateWP, Zapify sends them a message of your choosing, so they are not left guessing.

PRO feature

AffiliateWP is a Zapify PRO integration, so this automation needs an active Zapify PRO licence.

No Connection needed for AffiliateWP

AffiliateWP runs on your own site, so there is no API key to paste for it and nothing to set up under Settings → Connections.

Before you start

  • AffiliateWP installed and active.
  • A working mail setup so WordPress can send email.

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 Email rejected applicants.

Create a new automation

Step 2: Add the "An affiliate's status changes" trigger

  1. Click Add Trigger.

Add a trigger

  1. Choose AffiliateWP as the app.

Select AffiliateWP as the trigger

  1. Select An affiliate's status changes.

Select An affiliate's status changes

  1. Configure the trigger:
Field Required What it does
Previous status Yes Leave on Any status, or pick the status the affiliate had before, such as Pending.
New status Yes The status that should start the automation: Active, Inactive, Pending or Rejected.

Set New status to Rejected and leave Previous status on Any status.

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 action

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

For example:

  • To: the User email token
  • Subject: About your affiliate application
  • Body: Hi {First name}, thank you for applying. We aren't able to approve your application at the moment. You're welcome to reapply once your site has more content. Reply to this email if you'd like to talk it through.

Complete the Send an email action

Step 5: Set the steps Live and save

Each trigger and action has its own Live / Off / Draft switch. A new automation starts as a Draft and does nothing until its steps are Live.

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

Set the automation live

Step 6: Test it

Reject a test affiliate in AffiliateWP → Affiliates, then check the inbox. Open Zapify → Logs to confirm the run and read what the action reported.

Tokens you can use

The trigger offers the affiliate's details, one extra token for the old status, plus the user tokens.

Token What it holds
Affiliate ID The affiliate's numeric ID in AffiliateWP.
Affiliate status Their status: active, inactive, pending or rejected.
Affiliate referral URL Their personal referral link, ready to put in an email.
Affiliate payment email The address they get paid at.
Affiliate rate / Affiliate rate type Their commission rate and whether it is a percentage or a flat amount.
Affiliate earnings / Affiliate unpaid earnings What they have earned in total, and what is still waiting to be paid.
Affiliate previous status The status they had before the change.
User ID / Username / User email The user the automation runs for: the affiliate, or the referred customer when Run for is set to the customer.
Display name / First name / Last name Their name details.

Conclusion

With the An affiliate's status changes trigger on Rejected and the Send an email action, every decision gets a reply. For the opposite case, see emailing approved affiliates.

FAQs

Is this free in Zapify?

The Send an email action is free, but the AffiliateWP trigger is part of the AffiliateWP PRO integration and needs an active Zapify PRO licence.

Can I use the same trigger for Inactive affiliates?

Yes. Build a second automation with New status set to Inactive and wording that suits it.

Should I explain why?

It is up to you. A short, kind message with a way to reply tends to cause the fewest follow-up complaints.

Do I need to write any code?

No. Everything is configured visually in the Zapify builder.

Was this page helpful?