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 : AddressThe following example displays the address book.
Mail LookUpThe following example displays Sandra's full details.
Name = "Sandra"
Mail LookUp Name, , 1The 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?"
EndIfVersion
4.0.0 Introduced
4.0.1 Changed from function to command and added extra parameters.