Description
This function disables Apache SpamAssassin™ for a cPanel account.
Examples
cPanel or Webmail Session URL
https://hostname.example.com:2083/cpsess##########/execute/Email/disable_spam_assassin
LiveAPI PHP Class
$cpanel
=
new
CPANEL();
$disable_sa
=
$cpanel
->uapi(
'Email'
,
'disable_spam_assassin'
);
LiveAPI Perl Module
my
$cpliveapi
= Cpanel::LiveAPI->new();
my
$disable_sa
=
$cpliveapi
->uapi(
'Email'
,
'disable_spam_assassin'
,
}
);
cPanel Template Toolkit
[% execute('Email', 'disable_spam_assassin') %]
Command Line
uapi --user=username Email disable_spam_assassin
|
Output (JSON)
{
"messages": [
"Apache SpamAssassin™ has been disabled."
],
"errors": null,
"status": 1,
"data": null
}
Parameters
This function does not accept parameters.
Returns
This function only returns metadata.