GetEmail

This function gets specified user’s main email address.

Syntax

GetEmail("userLogin");

Function arguments

  • userLogin – (String) The login of the user for which email address is to be retrieved

Return value

This function returns String.
Returns email address for specified user (i.e. 'r.simmons@company.com’) or an empty string, if there is no email address available for that user.

Examples

Example 1:
This will get main email address for user with login 'j.simmons’ and store it in 'mail’ variable.

mail = GetEmail("j.simmons");

Example 2:
This will get main email address for current user and store it in 'myMail’ variable.

myMail = GetEmail( CurrentUser() );
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.