LOTUSSCRIPT/COM/OLE CLASSES


GetMailInfo method
Example

Returns Mail data for the specified person.

Note This method is new with Release 8

Defined in

NotesDirectory

Syntax

mailinfo = notesDirectory.GetMailInfo(username [, getver] [, errorOnMultipleMatches])

Parameters

username


getver
errorOnMultipleMatches
Return value

mailinfo

Usage

For Directory lookups of mail information, the resident Server specified for the Directory class instance will be used, if present. If that fails, bootstrap information for the method will be gleaned from the user's current operating environment.

If errorOnMultipleMatches is True, and multiple matches for the same name are found, the error code that is thrown is error code 4751 "Directory contains multiple entries for this user."

If no server responds to the lookup requests, the error code that is thrown is error code 4749 "Unable to access server."

If username was not found in the Directory, the error code that is thrown is error code 4731 "User not found in Directory."

If the method fails for any other reason, the error code that is thrown is error code 4730 "GetMailInfo failed."

If getver is True and the specified person's home server is not available, BuildNumber and DominoVersion will be left blank.

Example