getMail (DirectoryUser - JavaScript)

Gets the mail name of the directory entry.

Syntax

getMail() : string
Return value Description
string The mail name.

Usage

A mail name is the name used for internet mail. For example: jbgoode@acme.com.

Example

This computed field displays the mail name of the directory entry for the current user.
return context.getUser().getMail()