AFI AFI

Cakemail

Estimated reading: 2 minutes Updated August 1, 2026

Cakemail is a Canadian email-marketing platform popular with small businesses and agencies. Advanced Form Integration sends form submissions to Cakemail as new contacts on a chosen mailing list.

What you’ll need

  • An active Cakemail account.
  • Your Cakemail Username and Password (Cakemail uses these to generate a secure access token via API).
  • The Advanced Form Integration plugin installed and activated.

Connect Cakemail to AFI

  1. In WordPress, go to AFI → Settings.
  2. Enable Cakemail and click Save Changes.
  3. Open the Cakemail tab.
  4. Enter your Cakemail Username and Password.
  5. Click Save Changes. AFI exchanges these for an access token automatically.

Create the integration

  1. Go to AFI → Add New.
  2. Configure the trigger.
  3. In Action → Platform, select Cakemail.
  4. In Task, choose Add Contact to List.
  5. Pick the Mailing List: AFI loads your lists from Cakemail automatically.
  6. Map the form fields:
  • Email (required).
  • Custom contact attributes by field name.
  • Tags and Interests (comma-separated).
  • Double Opt-in: true to require email confirmation, false to subscribe directly.
  1. Optional: configure Conditional Logic.
  2. Click Save Integration.

Screenshot: AFI field-mapping screen with Cakemail list and contact fields visible

Tasks supported

Add Contact to List

Adds the form submitter as a contact on the chosen Cakemail list. Custom attributes, tags, and interests are written to the contact record. Double opt-in triggers Cakemail’s confirmation email flow.

Conditional logic example

Subscribe with double opt-in OFF only when the form’s confirmed_signup hidden field is “yes” (e.g., users who arrived through a confirmed referral link). All other signups go through Cakemail’s confirmation flow via a separate integration.

Troubleshooting

Integration doesn’t fire

Open AFI → Log and find the most recent entry. The log shows the request payload sent to Cakemail and the response received, usually pointing straight at the cause.

“Authentication failed”

Cakemail’s username/password auth fails if either credential is wrong. Confirm both in your Cakemail account settings, then re-save in AFI.

Custom attribute rejected

Cakemail attributes must already exist on the chosen list. Add them under Lists → list settings → Custom Fields in Cakemail before mapping in AFI.

Related docs