Subscribing to a Mailman list from any web page

It happens quite often that you want people to be able to subscribe to your Mailman mailing list from a web page. It turns out to be quite easy to do this. The simple solution to this problem is simply to copy some of the elements of the Mailman subscription form. Also, it turns out that you don't need the whole form to get the desired results.

Here's a simple example that works for me:

<FORM
Method=POST
ACTION="http://lists.bnt-solutions.net/mailman/subscribe/my-list">

To join our mailing list,<br>
enter your email address<br>
and press Subscribe:<br>

<INPUT type="Text" name="email" style="width: 90px;" size="30" value=""><br>
<INPUT type="Submit" name="email-button" value="Subscribe">
</FORM>

Note that the ACTION above should be changed to point to your list.

The user must enter his email address into the Email address box, then click on the Subscribe button. The form is posted to the Mailman software which then replies. Unfortunately, Mailman does not provide a convenient link back to the original web site. It does provide some instructions, though, which the user will no-doubt appreciate.

Mailman also supports a number of other options that might be useful in some cases. If you look at the mailman subscription page you can produce a form which has lots of options just by copying the essential elements from the Mailman form.

Here's an example:

<FORM
Method=POST
ACTION="http://lists.bnt-solutions.net/mailman/subscribe/my-list">

To join our mailing list,<br>
enter your email address<br>
and press Subscribe:<br>
<INPUT type="Text" name="email" style="width: 90px;" size="30" value=""><br>
<br>
Your Name (optional): <INPUT type="Text" name="fullname" size="30" value="">

<br><br>

You may enter a privacy password below. This provides only mild security,
but should prevent others from messing with your subscription. <b>Do not use a
valuable password</b> as it will occasionally be emailed back to you in cleartext.<br><br>

If you choose not to enter a password, one will be automatically generated for you, and it will be sent to you once you've confirmed your subscription. You can always request a mail-back of your password when you edit your personal options.

Password choice: <INPUT type="Password" name="pw" size="15"><br>
Confirm Password: <INPUT type="Password" name="pw-conf" size="15"><br><br>

Would you like to receive list mail batched in a daily digest? (You may choose NoMail after you
join.)<br><br>
<input type=radio name="digest" value="0" CHECKED> No
<input type=radio name="digest" value="1"> Yes<br><br>

<INPUT type="Submit" name="email-button" value="Subscribe">
</FORM>

Note: The above example is modified from a mailing list post that I found using Google. Unfortunately, when I tried to find it again to give proper attribution in this article, Google kept pointing me to Mailman mailing list subscription forms. My thanks to the person who typed that note as it saved me some time.