Description
This function lists all of a cPanel account's mail domains, with none preselected.
Examples
LiveAPI PHP Class
$cpanel
=
new
CPANEL();
$list_mail_domains_opt
=
$cpanel
->api1(
'Email'
,
'listmaildomainsopt'
);
LiveAPI Perl Module
my
$cpliveapi
= Cpanel::LiveAPI->new();
my
$list_mail_domains_opt
=
$cpliveapi
->api1(
'Email'
,
'listmaildomainsopt'
);
cPanel Tag System (deprecated)
Warning:
In cPanel & WHM version 11.30 and later, cPanel tags are deprecated. This example is present in order to help developers move from the old cPanel tag system to our LiveAPI.
We strongly recommend that you only use the LiveAPI system to call the cPanel APIs.
<cpanel Module="Email::listmaildomainsopt() )">
|
Output (HTML)
<
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.