README:
PhpMailman uses curl for connection to the admin interface of a mailman list.
Ensure the "cookie" file has write permision for the executer user.
EXAMPLE:
$mailman = new PhpMailman(array('url' => 'http://yourdomain/mailman/admin/yourlist', 'clave' => 'tests')); /config connecton
$conexion = $mailman->connect();//first connection to create the cookie
if ($conexion) {
$conexion = $mailman->connect();//ensure cookie creation
if ($conexion) {
$mailman->addMembers(array('member1@avantine.com', 'member2@domain.com'));/adding membres
}
}
|