Getting started

To use Services_Mailman, you need to include it into your PHP file:

<?php
require_once 'Services/Mailman.php';
?>

Then, create a Services_Mailman object and supply the "Admin Links" URL and the admin password:

<?php
$mm 
= new Services_Mailman('http://example.org/mailman/admin''''adminpass');
?>

If you already know the mailing list you want to work on, specify it as second constructor parameter:

<?php
$mm 
= new Services_Mailman(
    
'http://example.org/mailman/admin',
    
'foo-users',
    
'adminpass'
);
?>

Error handling

If something goes wrong, Services_Mailman's methods will throw exceptions of type Services_Mailman_Exception. Using it's getMessage() method will give you a human-readable error message.

Services_Mailman (Previous) Examples (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.