Description

This function retrieves the account's contact email addresses.

Examples 


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$contact_email = $cpanel->api1('CustInfo', 'getemail'); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $contact_email = $cpliveapi->api1('CustInfo', 'getemail'); # Call the function.

 

<cpanel Module="CustInfo::getemail()">
cpapi1 --user=username CustInfo getemail

username@example.com

 

Parameters

This function does not accept parameters.

Returns

This function returns the email address or addresses that the ~/.contactemail file contains.