A seamless Kirby & GNU Mailman form integration
Version: 0.1
This is a Kirby snippet (to be used with the Kirby CMS). It's purpose is to provide a seamless integration with GNU Mailman.
It sets you up with a simple (un)subscriptions form for Mailman. The form triggers Mailman through standard URLs and parses it's responses to use in your frontend. It can handle one or any number of list (although it is not (yet?) able to do multi-(un)subscription an once).
The lists should be provided through the Kirby backend/site settings, hence the eu-kirby-mailman-blueprint.php
example (goes somwhere into your /blueprints/site.php
).
The aim was to not use any admin- or user-passwords, but to rely solely one double-opt-in/-out through Mailman's built in email confirmation system.
- fix in some environments returning the error 'The listserver did not respond.' although all values are correct.
Move the file to the Kirby Snippets folder located in Kirby ▶ site ▶ snippets
. If it does not exist, create it.
Like so: <?php snippet('eu-kirby-mailman') ?>
You'll probably want to that within a sidebar or a footer or something.
This thing requires some fields:
$site->mailmanurl()
→ url to mailman itself (like so:https://lists.example.org/cgi-bin/mailman/
) [1]$site->mailmanlist()
→ name of your mailman list (like so:info
) [1]
[1] = note that you can also add more than one list, that's done by putting the information on each list into the fields after one antotheer (in the same order in both fields & seperating the values by a semicolon ;
)
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.