Skip to content

Send submitter IP address to MailerLite - #12

Merged
jhhazelaar merged 1 commit into
0.xfrom
f/jh/subscriber-ip-address
Jul 13, 2026
Merged

Send submitter IP address to MailerLite#12
jhhazelaar merged 1 commit into
0.xfrom
f/jh/subscriber-ip-address

Conversation

@jhhazelaar

Copy link
Copy Markdown
Member

Ports the IP-address feature from the original bundled addon: the submitter's IP is now sent to MailerLite as ip_address on the subscriber, which MailerLite uses as a consent and spam signal.

Unlike the bundled addon — which stamped the IP onto the submission via a FormSubmitted listener because its SubmissionCreated listener was queued — this captures request()->ip() directly in the (synchronous) listener and passes it to the queued job. The submission data itself stays untouched, and the field is omitted when no IP is available (e.g. console-created submissions).

MailerLite uses the subscriber IP as a consent and spam signal.
The listener runs during the request, so it captures the client
IP there and forwards it through the queued subscriber job.

Changelog: added
@jhhazelaar
jhhazelaar merged commit 57b1975 into 0.x Jul 13, 2026
35 checks passed
@jhhazelaar
jhhazelaar deleted the f/jh/subscriber-ip-address branch July 13, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant