[Mailman-Users] Subscription form

Paul H Byerly paul at thcwd.com
Fri Oct 10 03:31:30 CEST 2003

      At some point today as I trudged through the paying job, I realized I 
was about to recreate the wheel on the subscription form.  The following is 
mostly stolen from the subscription form on the list information page.  Set 
your server and list name and you are ready to go.  I've not done much 
formatting as I will slice and dice it to fit my situation, so pretty it up 
as you like.
      The only required form elements are the opening tag (with action), 
e-mail input, send and closing form tag.  I've got one running now with 
just this much and it works fine.  I'm running it on a virtual domain on 
the same server as Mailman - not sure if running it on another server would 
be a problem or not, depends on security issues.
      The result of sending is that you go to the same page you get when 
you subscribe from the list info page.  This means you get a confirmation 
e-mail (prevents someone from subbing others) and have to follow that 
route.  Edit the results page and confirmation page to fit your needs.

      One question, anyone know if No Mail be giving as an option here?  I 
have not hacked the subscription script to see if it has code for that.

<!-- cut and paste --

<hr ALIGN="center" WIDTH="730"><br>
<H2><B>Join the XYZ list</b></H2>
<FORM Method=POST ACTION="SERVER/mailman/subscribe/LISTNAME"><br>
Your E-mail address: <INPUT type="Text" name="email" size="30" value=""><br>
Your Name (optional): <INPUT type="Text" name="fullname" size="30" 
You may enter a privacy password below. This provides only mild security, 
but should<br>
prevent others from messing with your subscription.  <b>Do not use a 
valuable password</b> as it<br>
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<br>
be sent to you once you've confirmed your subscription.  You can always 
request a mail-back<br>
of your password when you edit your personal options.<br><br>
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">
<hr ALIGN="center" WIDTH="730">

end  -->

<>< Paul 

More information about the Mailman-Users mailing list