AddRecipient

Description

Adds the specified recipient for an appointment.

Applies to

POOMAppointment controls

Syntax

Integer objectname.AddRecipient ( name { emailAddress } )

Argument

Description

objectname

The name of the POOMAppointment object

name

A string or an object of type POOMRecipient that specifies the name of a recipient to be added to the appointment’s recipient list. If you use a POOMRecipient object for name, you cannot use the emailAddress argument.

If you pass a string for name, but do not specify the emailaddress, or if you use a POOMRecipient object that does not contain an e-mail address, the Contacts list is searched for a matching name. If multiple matches are found, a Pocket Outlook dialog box displays so that a specific recipient can be selected.

emailAddress

(Optional) A string specifying the recipient’s e-mail address.

Returns

Integer. Returns 1 for success and one of the following negative values if an error occurs:

See also