Mailtrain
Overview
AFI subscribes contacts to lists in Mailtrain, the self-hosted open-source newsletter platform, from WordPress form submissions. Capture leads into your self-hosted Mailtrain instance automatically.
Supported actions
- Subscribe to List
- Unsubscribe
- Update Subscriber
Authentication
- Log in to your Mailtrain admin.
- Open Users > Your User > Access Tokens.
- Generate a personal access token.
- Note your Mailtrain root URL.
- In AFI go to Settings > Mailtrain and paste the token and root URL.
How to create the integration
- In WordPress admin, go to AFI > New Integration.
- Pick your Sender (Contact Form 7, WPForms, WooCommerce, etc.) and the form / event to listen on.
- Pick Mailtrain as the Receiver, then pick the Task you want to run.
- Map sender fields onto Mailtrain’s fields. Email is required. Custom fields must exist on the destination list.
- Optional: add Conditional Logic so the action only fires on matching submissions.
- Save and run a test submission. Check AFI > Log if anything looks off.
Notes & caveats
- Self-hosted: confirm your Mailtrain instance is reachable from the internet (or from your WordPress server, at minimum).
- CIDs (subscriber IDs) are returned on subscribe — store if you need to look up subscribers later.
- List IDs: cached on save.