MailPoet Integration
MailPoet is a self-hosted email marketing plugin for WordPress that lets you build and send newsletters directly from your WordPress admin. Because MailPoet runs directly on your WordPress site, WP Smart Consent integrates with it via MailPoet’s native PHP API — no external API key or internet connection required.
What You’ll Need#
MailPoet installed and active on the same WordPress site as WP Smart Consent. No API key or account setup is needed beyond that.
Setting It Up#
In the WP Smart Consent dashboard, go to Integrations and find the MailPoet card. Enable it and save. WP Smart Consent will detect MailPoet automatically and begin forwarding opted-in contacts as soon as the integration is active.
What Gets Sent#
When a visitor opts in, WP Smart Consent forwards their first name, last name, and email address to MailPoet via \MailPoet\API\API::MP('v1')->addSubscriber(). The contact is added to your MailPoet subscribers list immediately. If the contact already exists, their record is updated rather than duplicated.
List Assignment#
By default, contacts are added to your default MailPoet list. If you need to assign subscribers to a specific list, this can be controlled programmatically using the wpsc_mailpoet_list_id filter.
Works Alongside Other Integrations#
Enabling the MailPoet integration doesn’t affect any of your other active integrations. Each destination is independent — a single opt-in event will be forwarded to MailPoet and every other enabled destination simultaneously, and logged with the source integration that captured it.