From MediaWiki.org
Jump to: navigation, search

Other languages:
English • ‎日本語 • ‎polski
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png

Release status:Extension status unmaintained

ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Creates a mailman subscribe form
Author(s)Template:Extension#username User:Mohrr
LicenseTemplate:Extension#license No license specified
Download see below

Translate the Mailman extension if it is available at translatewiki.net

Check usage and version matrix.

Mailman is a very simple extension that creates a mailman subscribe form.

If you're looking for a mass emailer built into the wiki try Extension:STSGMassMailerExtension:STSGMassMailer.



For my site, I used the following:

  • /cgi-bin/mailman/ - the path to my Mailman installation (through Apache aliases and such)
  • subscribe - the action Mailman is to perform
  • recruiting - the list name

This will probably work with any other mailing list software that you can sign up for online, as long as the email gets passed through HTTP POST to the script in the email field. Or, you can make minor edits as you wish.

Anyway, create this file in your MediaWiki extensions folder:

 # extensions/mailman.php
 $wgExtensionFunctions[] = "wfMailmanExtension"; 
 function wfMailmanExtension() {
     global $wgParser;
     $wgParser->setHook( "mailman", "printMailmanForm" );
 function printMailmanForm( $input, $argv ) {
     global $wgParser;
     $output = "<form action=\"$input\" method=\"post\">".
       "<input name=\"email\" type=\"text\" />".
       "<input type=\"submit\" value=\"Subscribe\">".
     return $output;

Then add the following to LocalSettings.php: