Description

This function enables Apache SpamAssassin™ for the account.

Examples 




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



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

// Enable Apache SpamAssassin for the account.
$enable_sa = $cpanel->uapi(
    'Email', 'enable_spam_assassin'
);

 



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

# Enable Apache SpamAssassin for the account.
my $enable_sa = $cpliveapi->uapi(
    'Email', 'enable_spam_assassin',
    }
);

 



<!-- Enable Apache SpamAssassin for the account. -->
[% execute('Email', 'enable_spam_assassin') %]

 



uapi --user=username Email enable_spam_assassin



{
  "messages": [
    "Spam Assassin has been enabled on this account\n"
  ],
  "errors": null,
  "status": 1,
  "data": null
}



Parameters

This function does not accept parameters.

Returns

This function only returns metadata.