Overview
The AFI plugin makes it easy to connect your WordPress forms with Cakemail, allowing you to automatically add contacts to your mailing lists. When someone submits a form, their data is sent directly to the selected Cakemail list.
Perfect for automating newsletter subscriptions, lead collection, and growing your email audience.
โ Supported Features
Add Contact to a selected Cakemail list
Map custom fields
Apply tags and interests
Enable double opt-in
๐ง How To Setup
Step 1: Connect Your Cakemail Account
Before setting up an integration, you’ll need to enter your Cakemail login credentials.
Go to AFI โ Settings โ General
Enable Cakemail and click Save Changes
A new Cakemail tab will appear โ click on it
Enter your Username and Password
Click Save Changes
๐ These credentials are used to generate a secure access token for Cakemail API.
Step 2: Create a New Integration
Go to AFI โ Add New
Youโll land on the New Integration setup screen
๐น Title
Give your integration a clear name, e.g., โNewsletter Signup โ Cakemailโ
๐น Trigger
Form Provider: Choose your form plugin (e.g., WPForms, Elementor, Contact Form 7)
Form/Task Name: Select the specific form you want to integrate
Step 3: Configure the Action
๐น Platform
Select Cakemail
๐น Task
Choose Add Contact to List
This action will send the form submission data to your selected Cakemail list.
Step 4: Map Fields
Once you choose the task, more options will appear:
๐น Cakemail Account
Select your stored Cakemail account
๐น Mailing List
Select the target list to which the new contact should be added
๐ ๏ธ AFI will fetch all your lists from the connected Cakemail account.
๐น Map Form Fields
Match your form fields with the fields in Cakemail:
Email (required)
Any available Custom Attributes
Optionally map Tags and Interests (comma-separated)
๐น Double Opt-in
Enable this option if you want users to confirm their subscription via email
Step 5: Save Integration
Click Save Integration at the bottom of the page.
๐ You’re done! All new form submissions will now be sent to your selected Cakemail list.
๐ Troubleshooting
If the integration isn’t working as expected:
Go to AFI โ Log
Review the log entries for any errors related to Cakemail
Things to check:
Username and password are correct
The selected list exists and is active
Required fields (like email) were mapped correctly
No API error or authentication issue