%% userAlias %%

Description:

The e-mail preference that stores the user's real name added to the user's e-mail address for outgoing mail.

Arguments:

None.

Return Values:

E-mail alias of the current user.
"" (empty string) if the e-mail alias is not set in the user's e-mail preferences.

Notes:

WCTL Example

%% macro TestUserAlias %%
%% if user.userAlias == "" // If the e-mail alias is not specified for the current user %%
        %% // Set the e-mail alias for the current user %%
        %% set emailAlias user.setUserAlias( "Bill Smith" ) %%
        %% // Display the e-mail alias %%
        %% crlf %% %% user.userName %%'s new e-mail alias for the local e-mail address %% user.userMailbox %% is: %% user.userAlias %%<br>
%% else %%
        %% // Display the e-mail alias set in the current user's e-mail preferences %%
        %% crlf %% %% user.userAlias %% is the %% user.userName %%'s e-mail alias for the local e-mail address %% user.userMailbox %%.<br>
%% endif %%
%% endmacro %%

See Also:

user Functions, setUserAlias, userMailbox, WCJS userAlias, etc.