Mail LookUp

This command returns details about a mail recipient from a full or partial name.

Syntax

Mail LookUp [Name], [Address], [Options]

Synonyms

ML LU

Parameters

The following table describes the parameters of the Mail LookUp command:

Parameter Description
Name Name of the variable that contains the full or partial name to look up. On return, it receives the full name of the recipient. If the Name variable is empty, the mail address book is displayed.
Address Name of the variable that receives the address of the recipient.

Values for Options

Value Description
1 Display full details

Examples

The following example displays Sheila's full name and address.

Name = "Sheila"
Mail LookUp Name, Address
MessageBox Name : CR : Address

The following example displays the address book.

Mail LookUp

The following example displays Sandra's full details.

Name = "Sandra"
Mail LookUp Name, , 1

The following example checks Sally's name before sending a message.

Name = "Sally"
Mail LookUp Name
If Name # "" Then
Mail Send Name, , , "Greetings!", "How about a drink after work?"
EndIf

Version

4.0.0 Introduced

4.0.1 Changed from function to command and added extra parameters.