This article documents the usage of the Cpanel::Email::listdefaultaddresses function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Cpanel::Email::listdefaultaddresses
This tag will list the default address for each domain (parked, sub, addon) associated with the inputted domain.
<?cp Email::listdefaultaddresses(% %,domain,defaultaddress) domain=$FORM{'domain'} ?>
This example will output all domains associated with the domain from a form and their respective default addresses.
Copyright 2007 cPanel Inc.