Login   Register  
PHP Classes
elePHPant
Icontem

File: README

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Angel Talaverón  >  PHP Mailman  >  README  >  Download  
File: README
Role: Documentation
Content type: text/plain
Description: README documentation and example
Class: PHP Mailman
Manage a mailing list based in Mailman
Author: By
Last change:
Date: 2012-11-30 09:31
Size: 565 bytes
 

Contents

Class file image Download
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
    }
}