Description

This function lists all of a cPanel account's mail domains, with none preselected.

Examples


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$list_mail_domains_opt = $cpanel->api1('Email', 'listmaildomainsopt'); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $list_mail_domains_opt = $cpliveapi->api1('Email', 'listmaildomainsopt'); # Call the function.

<cpanel Module="Email::listmaildomainsopt() )">
cpapi1 --user=username Email listmaildomainsopt

<option value="example.com">example.com</option>
<option value="exampledomain.com">exampledomain.com</option> 
<option value="domain.com">domain.com</option> 

Parameters

This function does not accept parameters.

Returns

This function returns a list of each mail domain on the account, wrapped in <option> tags.