[Mailman-Users] Subscribing someone from a CGI script

Lars Anderson lsa at business.aau.dk
Thu Nov 3 10:28:49 CET 2005


On Wed, Nov 02, 2005 at 23:34:59, Steve Vance wrote:

> I have Mailman set up and working, for several mailing lists. On one of 
> them, the mailing list is part of a website which has a form you can 
> fill out. You can put in your name, e-maill address, what you're 
> interested in, etc. One of the items on the form is a checkbox, 
> "Subscribe me to the listserve". I'm trying to get this checkbox to work.
> 
> The CGI is coded in PHP and Perl. I have tried various ways of 
> automatically subscribing someone to the Mailman listserve in question, 
> but so far I haven't been able to figure it out. I have had PHP do the 
> command line "bin/add_members", and nothing seems to happen. The other 
> thing that I have encountered is of course "Group mismatch error.  
> Mailman expected the CGI wrapper script to be executed as group 
> "nobody", blah blah blah". I realize this is a safety feature, so that 
> my listserve isn't hacked. But now, it is me doing the hacking, and I 
> want to allow it!

How about using mailmans email interface, from your PHP script you can 
just email your subscribe commands to mailman. (Unless your ISP disabled 
mail in PHP).

Lars
-- 
Lars Anderson                      E-mail: lsa at business.aau.dk
Faculty of Social Sciences         Jabber: lsa at jabber.samf.aau.dk 
Aalborg University                 Voice: +45 96358225, Fax: +45 98153505
Denmark                            Office: Fib4-117



More information about the Mailman-Users mailing list