This article documents the usage of the Cpanel::Email::listmxs function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Cpanel::Email::listmxs
This function lists the MX Entries for all domains (addon, parked, sub) associated with a root domain, as well as the MX entry for the root domain.
<?cp Email::listmxs(% %,domain,mx) domain=$FORM{'domain'} ?>
This example will output the MX Entries for all domains (addon, parked, sub) associated with the domain in a form, as well as the MX entry for the domain.
Copyright 2007 cPanel Inc.