Description

This function disables Apache SpamAssassin™ for a cPanel account.

Examples 




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



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.

// Disable Apache SpamAssassin for the account.
$disable_sa = $cpanel->uapi(
    'Email', 'disable_spam_assassin'
);

 



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.

# Disable Apache SpamAssassin for the account.
my $disable_sa = $cpliveapi->uapi(
    'Email', 'disable_spam_assassin',
    }
);

 



<!-- Disable Apache SpamAssassin. -->
[% execute('Email', 'disable_spam_assassin') %]

 



uapi --user=username Email disable_spam_assassin



{
  "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.