Hello,

I have a signup sheet that subscribes people to a Mailman list by using 
PHP to call add_members (the PHP is below, FYI).  My problem is that 
add_members seems to ignore the email confirmation settings from the 
admin interface.  Even though my list is configured to send a 
confirmation message, subscribers only get the "Thanks for signing up!" 
email.

Does anyone know of a way to use add_members in a confirmed-opt-in 
list?  Thanks very much!

-Ren



=-=-=-=-=-=-=-

<h2>Subscription Results</h2>

<?php

// The path to your add_members program here:
$ADD_MEMBERS = '/your/path/to/add_members';

// The name of your mailing list:
$LIST = 'FakeList';

// The email address from the form, run through a process
// that removes nasty scripting attacks
$adrs = escapeshellcmd($_GET['email']);

// Runs the pipeline and stores the output in an array
exec("echo $adrs | $ADD_MEMBERS -r - $LIST", $output, $return_var);

// Implodes the array into a string
$msg = implode('', $output);

// Search for 'Subscribed' in $msg. Then we know if it worked or not.

if (strpos($msg, 'Subscribed') === FALSE) {
   print "Crap!  Something went wrong and you were not subscribed.";
} else {
   print "It worked!";
     }

?>

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to