Many questions and answers for this one, but none that pin point what's going on.
I have an agent that runs daily @ 12 noon to remind recipients that they have issues outstanding. The view that is referenced has an assigned field that can contains multi names. Here is what I have for the auto agent mail send.
Dim session As notessession
Dim doc As notesdocument
Dim curdoc As notesdocument
Dim db As notesdatabase
Dim v As NotesView
Dim rtitem As NotesRichTextItem
Set session = New notessession
Set db = session.Currentdatabase
Set doc = New notesdocument (db)
Set v = db.GetView( "OpenIRs5")
Set curdoc = v.GetFirstDocument
Do Until curdoc Is Nothing
doc.principal= "eStar Open IR Auto Notification Monitor"
doc.Subject = "Assigned IR over 5 days old Pending Your Review."
doc.Remark = "This notification is autogenerated. Please do not reply to this email."
Set rtitem = New NotesRichTextItem( doc, "Body" )
Call rtitem.AppendText( "This is a Daily Notification Process indicating you have an open IR older than 5 days that Requires your attention. " + Chr(13) + "Please Open, Review and Update the IR." + Chr(13) + "A Final Cause and Resolution are Required. " + Chr(13) + "Thank You !" + Chr(13) + "Open IR Document Link -> " )
Call rtitem.AppendDocLink( curdoc, doc.Subject( 0 ) )
Set curdoc = v.GetNextDocument( curdoc )
if there is one name in the assigned field on the form then the email gets sent no problem. If there are more than 1 name I get an error saying no match found in the address book. The assigned field is multivalue separated by semicolon. This agent go through each doc in the view and sends an email to the assigned recipients.
What am I missing ???
Thank You !