How to Send Fluent Affiliate Data to Mailgun

Written by Nasir Ahmed
PublishedAugust 2, 2026
Reading time3 min read

Mailgun is a email delivery platform for managing subscribers and campaigns. If you want Fluent Affiliate an affiliate registers or a referral is generated synced to Mailgun, you could pay for a cloud automation service. Or you could do it directly from WordPress. This is the direct route.

Why connect directly?

Cloud automation tools like Zapier charge per task and route your data through external servers. AFI processes everything on your WordPress site. No per-referral fees, no external dependencies.

What you will need

  • A WordPress site with Fluent Affiliate installed and configured.
  • A Mailgun account.
  • The Advanced Form Integration plugin (free from WordPress.org).

Connect Mailgun to AFI

  1. Log in to your Mailgun account.
  2. Go to Settings → API Keys and copy your Private API Key.
  3. In WordPress, go to AFI → Settings → Mailgun.
  4. Enter your domain and API Key, then click Save.

Setting up the integration

1. Create a new integration

Go to AFI → Add New. Name it Fluent Affiliate to Mailgun.

2. Pick your trigger

Select Fluent Affiliate as the form provider. AFI fires when an affiliate registers or a referral is generated, giving you access to affiliate details, referral amounts, and commission data.

3. Select Mailgun as the destination

Choose Mailgun from the platform dropdown and pick Add Mailing List Member. This adds a member to a Mailgun mailing list.

4. Map fields

Match each Mailgun field on the left to the corresponding Fluent Affiliate field on the right. Common mappings include affiliate name, email, referral ID, commission amount, and status. You can also use smart tags like {{_submission_date}}.

5. Add conditions if needed

Only want to send certain referrals? Set up a conditional rule based on any field value.

6. Save and test

Click Save Integration. Trigger a test event in Fluent Affiliate. Check Mailgun to confirm the data arrived. If anything looks wrong, open AFI → Log to see the exact request and response.

Free vs Pro

The free version maps email and name to Mailgun with unlimited referrals. Pro adds custom field mapping. No per-referral fees on any plan.

Frequently asked questions

Which Fluent Affiliate events trigger the integration?

AFI fires when an affiliate registers or a referral is generated. This covers new affiliate registrations, referral creations, and commission status changes.

Will adding this slow down my site?

No. AFI sends data to the destination after the affiliate event completes. Your site performance is not affected.

Can I send affiliate data to multiple platforms?

Yes. Create a separate integration for each destination, and every event flows to all of them simultaneously.

Get started

Install Advanced Form Integration free from WordPress.org and connect Fluent Affiliate to Mailgun in minutes.

Leave a Reply

Your email address will not be published. Required fields are marked *