Description

This function returns the number of autoresponders for every email address on a cPanel account.

Examples




https://hostname.example.com:2083/cpsess##########/execute/Email/count_auto_responders



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Return the number of autoresponders.
$variable = $cpanel->uapi(
    'Email', 'count_auto_responders'
);




my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Return the number of autoresponders.
my $variable = $cpliveapi->uapi(
    'Email', 'count_auto_responders'
);



<!-- Return the number of autoresponders. -->
[% execute('Email', 'count_auto_responders') %]



uapi --user=username Email count_auto_responders



{
  "data": 1,
  "messages": null,
  "errors": null,
  "status": 1,
  "metadata": {
    "transformed": 1
  }
}



Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
datainteger

The number of email autoresponders.

  • 0
  • A positive integer.
1