Skip to content

AffiliateWP Automations

How to Send a Welcome Email When Someone Registers as an Affiliate in AffiliateWP

To send a welcome email when someone registers as an affiliate in AffiliateWP, use Zapify's A user registers as an affiliate trigger with the Send an email action. The affiliate gets your own message, with their name and personal referral link filled in, the moment they finish the registration form. AffiliateWP is a Zapify PRO integration.

What this automation does

The automation is one trigger plus one action:

  • Trigger: A user registers as an affiliate (AFFWP_AFFILIATE_REGISTERED, AffiliateWP)
  • Action: Send an email (WP_SEND_EMAIL, WordPress)

As soon as somebody registers through AffiliateWP's affiliate registration form, Zapify emails them. Leave the trigger on Any status to welcome everyone, whether they are approved straight away or wait in your approval queue.

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 Welcome new affiliates.

Create a new automation

Step 2: Add the "A user registers as an affiliate" trigger

  1. Click Add Trigger.

Add a trigger

  1. Choose AffiliateWP as the app.

Select AffiliateWP as the trigger

  1. Select A user registers as an affiliate.

Select A user registers as an affiliate

  1. Configure the trigger:
Field Required What it does
Status Yes Any status to catch every sign-up, Pending approval for applications that need a decision, or Active (approved straight away) for people your program accepts automatically.

For this automation, leave Status on Any status. If you approve affiliates by hand, see emailing an affiliate when they are approved for the message that follows your decision.

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, so the message goes to the new affiliate
  • Subject: Welcome to the {First name} affiliate program
  • Body: Hi {First name}, thanks for joining. Your status is {Affiliate status}. Your personal link is {Affiliate referral URL}. We'll be in touch if we need anything else.

Use the {} token button beside each field to insert the values.

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

Register a test affiliate account from your affiliate registration page, using an address you can read. 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, 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.
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 A user registers as an affiliate trigger and the Send an email action, every new affiliate hears from you straight away. To be told about applications that need a decision, see getting an email when an affiliate is waiting for approval, or to bring them into your newsletter, adding approved affiliates to MailerLite.

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.

Will the affiliate get two welcome emails, mine and AffiliateWP's?

Yes, unless you switch AffiliateWP's own notification off in its email settings. Many sites keep AffiliateWP's receipt and use this email for a friendlier welcome that includes the referral link.

Does it run for affiliates I add by hand in the admin?

This trigger is for sign-ups through AffiliateWP's registration form. To react to a status change however it happened, use the affiliate status trigger.

Yes. Insert the Affiliate referral URL token. It holds their personal link, ready to share.

Do I need to write any code?

No. Everything is configured visually in the Zapify builder.

Was this page helpful?