Description: Adds a recipient member to the meeting. When the meeting is booked this recipient will receive a meeting invitation mail message.
Syntax: object.AddRecipient(sRecipient)
Parameters: object - Required, the Meeting object
sRecipient - The name or address of the recipient.
Remarks: The sRecipient parameter may be part or all of the recipient's name or address. If OfficeTalk cannot resolve the sRecipient parameter to a single unique recipient, it will pop up a Check Names dialog box, requiring you to choose the appropriate recipient. If you do not wish to have any user interface then you should call session.SetAllowUI(False). If UI is disallowed then AddRecipients will return FALSE if a unique recipient was not resolved. To ensure that sRecipient will represent a unique recipient prior to calling AddRecipient then use the methods session.InitCheckRecipients and session.GetCheckedRecipient(n).
Returns: Returns True if a unique recipient was resolved and added as a meeting member, False otherwise..
Example:
Dim session As Object
Dim meetings As Object
Set session = CreateObject("OfficeTalk.Session")
Set user = session.Logon(login name, password)
Set meeting = session.NewMeeting
bAdded = meeting.AddRecipient ("fred")
If (bAdded) Then
meeting.Name = "Test"
meeting.Book
End If