[Mailman-Users] set up HTML form to feed into Mailman

Lynn, Michael (GWM-CAI) michael_lynn at ml.com
Thu Aug 14 18:35:04 CEST 2008


Dave,

You mean instead of using the python driven web form that comes with
mailman?

You can create a front-end to the existing subscription processes using
an html form that collects the necessary parameters and submits them to
mailman via the form's ACTION=<your mailman url/LISTNAME>.

Here are the required params:
email, fullname, pw, pw-conf (confirmed...same as pw), digest,
email-button

Here's a super-simple example:

<html>
<head>
<title>Subscribe to List</title>
</head>
<body>
<form action=http://yourmailman.server.com/mailman/subscribe/listname
method=post>
Email: <input name=email type=text><br>

Full Name: <input name=fullname type=text><br>

Password: <input name=pw type=password><br>
Confirm: <input name=pw-conf type=password><br>

Digest: <select name=digest>
<option value=1>Yes</option>
<option value=0>No</option>
</select>

<input type=submit name=email-button value=Submit>
</form>
</body>
</html>

Keep in mind - you'll probably want to implement or write a cgi script
to verify some of the input fields and scrub the data... and verify that
the pw matches pw-conf... but it's a start.

I wrote a script that allows folks to subscribe remotely from command
line on a unix/linux server as long as they have cURL installed... will
forward that along if anybody's interested. 

Here's the important line from the script.  The $VARS are collected from
the stdin or prompted.

curl -s
$MAILMANURL/${LIST}?email=${UEMAIL}&fullname=$FIRSTNAME%20$LASTNAME&pw=$
PW&pw-conf=$PW&digest=0&email-button=Submit

YMMV.

Rgds,
Mike



-----Original Message-----
From: mailman-users-bounces+michael_lynn=ml.com at python.org
[mailto:mailman-users-bounces+michael_lynn=ml.com at python.org] On Behalf
Of Dave Briggs
Sent: Thursday, August 14, 2008 12:02 PM
To: Mailman-Users at python.org
Subject: [Mailman-Users] set up HTML form to feed into Mailman

Hi all

How hard would it be to create an HTML form for a website which could  
be used to subscribe people to a list, rather than using the one on  
the mailman site for the list?

Thanks

Dave Briggs
db at davepress.net | www.davepress.net | 07525 209589




------------------------------------------------------
Mailman-Users mailing list
Mailman-Users at python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives:
http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/michael_lynn%40ml.c
om

Security Policy: http://wiki.list.org/x/QIA9
--------------------------------------------------------

This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing.
--------------------------------------------------------


More information about the Mailman-Users mailing list