Description
This function returns an email account's username or address.
Note:
If you call this function from a Webmail session URL, the system will only access data for that email account.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
account |
string |
The email address to return the mail account's username. Alternately, the mail account username to return the email address. If you do not include this parameter, the function returns All Mail On The Account, or a blank value. |
|
user |
display |
string |
Include this parameter to cause the function to return All Mail On The Account if the account parameter is blank or does not exist. If you do not include this parameter and the account value is blank or does not exist, the function returns a blank data value. |
Any non-blank value. |
any_value |
Returns
Return |
Type |
Description |
Possible values |
Example |
data |
string |
The email account information, a predetermined string, or a blank value. |
|
user@example.com |