AFI AFI

MailRelay

Estimated reading: 2 minutes Updated August 1, 2026

MailRelay is an email marketing platform with both EU and US hosting options. Advanced Form Integration subscribes contacts to MailRelay groups from WordPress form submissions.

What you’ll need

  • An active MailRelay account.
  • Your MailRelay API credentials (see below).
  • The Advanced Form Integration plugin installed and activated.

Get your MailRelay credentials

  1. Sign in to your MailRelay account.
  2. Go to Settings → API and generate an API Key.
  3. Note your account domain (e.g. youraccount.ip-zone.com).
  4. In WordPress, go to AFI → Settings → MailRelay.
  5. Click Add Account, enter the API Key and Domain, and give the account a name.
  6. Click Save.

Create the integration

  1. Go to AFI → Add New.
  2. Give the integration a name, for example Form to MailRelay.
  3. Under Trigger, pick the form plugin and the specific form.
  4. Under Action → Platform, select MailRelay.
  5. In Task, choose Subscribe to Group.
  6. Pick the saved account.
  7. Map your form fields onto the fields listed below.
  8. Optional: open Conditional Logic to limit which submissions are sent.
  9. Click Save Integration.

Screenshot: AFI field-mapping screen with MailRelay group and subscriber fields visible

Tasks supported

Subscribe to Group

Subscribes a contact to the selected MailRelay group via the API at {domain}/api/v1/.

Field Field key Required Notes
Email email Yes
Name name No

Pro features

The Pro integration extends the free version with additional capabilities. Pro uses the same MailRelay connection.

Feature comparison

Feature Free Pro
Subscribe to group
Email + name
Custom fields No

Conditional logic example

Only send data to MailRelay when specific conditions are met. For example, add a condition on a form field to control which submissions are forwarded.

Troubleshooting

Nothing arrives in MailRelay

Open AFI → Log and find the most recent entry. AFI stores the request URL, body, and raw response.

API credentials rejected

Verify your credentials in your MailRelay account settings. If they were regenerated, update them in AFI → Settings → MailRelay.

Related docs