Returns the mail of the indicated user.
1 system.user.getMail
<system.user.getMail code='code'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acode | string | User code. |
Returns | |
---|---|
Type | Description |
string | Email. |
Example
Obtains the mail of the user by default.
Copy
<xsql-script name='system_user_getMail_sample1'> <body> <println> <system.user.getMail /> </println> </body> </xsql-script>
If you do not pass the user code via the attribute code, the system returns the value related with the user which executes the command.
Example
Obtain the mail of the specified user.
Copy
<xsql-script name='system_user_getMail_sample2'> <body> <println> <system.user.getMail code='bpr'/> </println> </body> </xsql-script>
Informing the attribute code, the system returns the value related with the code of the specified user.