This article documents the usage of the Cpanel::Email::listdomainforwards function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Cpanel::Email::listdomainforwards
This tag will list all domains (sub, parked, addon) associated with the root domain, as well as the root domain, and their repesctive domain forwarders, if any.
<?cp Email::listforwards(% %,dest,forward) domain=$FORM{'domain'} || '$LANG{'NoFwds'}' ?>
This example will output the names of all domains associated with the domain from a form and their respective domain forwarders. If no domain forwarders are present, it will output the language file entry for NoFwds.
Copyright 2007 cPanel Inc.