Description

This function lists a mailing list's administrators.

Examples 




https://hostname.example.com:2083/cpsess##########/execute/Email/get_mailman_delegates?list=mylist



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// List the mylist mailing list's admins.
$get_admin = $cpanel->uapi(
    'Email', 'get_mailman_delegates',
    array(
        'list'        => 'mylist',
         )
);

 



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# List the mylist mailing list's admins.
my $get_admin = $cpliveapi->uapi(
    'Email', 'get_mailman_delegates',
    {
        'list'        => 'mylist',
    }
);

 



<!-- List the mylist mailing list's admins. -->
[% execute('Email', 'get_mailman_delegates', { 'list' => 'mylist', }) %]

 



uapi --user=username Email get_mailman_delegates list=mylist



{
  "messages": null,
  "errors": null,
  "status": 1,
  "data": {
    "delegates": [
      "admin@example.com",
      "user@example.com",
    ],
  "metadata": {
    "transformed": 1
  }
}



Parameters

ParameterTypeDescriptionPossible valuesExample
liststring

Required

The mailing list.

The name of a Mailman mailing list on the cPanel account.mylist

Returns

ReturnTypeDescriptionPossible valuesExample
delegatesarray

An array of the mailing list's administrators.

One or more email addresses.

secondadmin@example.com