Cpanel::Email::listmxs

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.


SYNOPSIS

Cpanel::Email::listmxs


DESCRIPTION

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.


VARIABLES

INPUT

domain (string)
Root domain to list MX entries for. Format: domain.com

OUTPUT

mx (string)
MX entry domain. Format: domain.com or sub.domain.com

domain (string)
Domain that has an MX entry. Format: domain.com or sub.domain.com


EXAMPLES

<?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

Copyright 2007 cPanel Inc.