This article documents the usage of the Cpanel::Email::setdefaultaddress function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Cpanel::Email::setdefaultaddress
This function sets and displays the default address for a domain.
<?cp Email::setdefaultaddress(% %,domain,dest) email=$FORM{'email'},domain=$FORM{'domain'},fwdopt=$FORM{'fwdopt'},failmsgs=$FORM{'failmsgs'},pipefwd=$FORM{'pipefwd'},fwdemail=$FORM{'fwdemail'} ?>
This example will set the default address for a domain as well as outputting the domain and the destination of mail to the catch all (the default address).
Copyright 2007 cPanel Inc.