Agent and Notification

departments they are in. I want to have an agent (below) notify the departmet managers, in a view, and send them an email so they can audit their employees. I also would like the department managers to reply from the email, that would have a question or two confirming they have checked their employess/accounts and repy to the IT department. Any ideas/suggestions?

Dim session As New NotesSession

Dim db As NotesDatabase

Dim view As NotesView

Dim newDoc As NotesDocument

Dim rtitem As NotesRichTextItem

'monthVal$ = Format(Now, “mmmm”)

Set db = session.CurrentDatabase

Set view = db.GetView( “STA2” )

Set newDoc = New NotesDocument( db )

Dim str_sendTo(3) As String

str_sendTo(0)= “Tech Support1”

str_sendTo(1)= “Tech Support2”

str_sendTo(2)= “”

Set rtitem = New NotesRichTextItem( newDoc, “Body” )

Call rtitem.AppendText( “Please check that your employee accounts are correct” & _

" then reply. " & _

“This information may be viewed in the Account database.” )

Call rtitem.AddNewLine( 2 )

Call rtitem.AppendText(“Click the following link—>”)

Call rtitem.AppendDocLink( view, view.Name & " in " & db.Title )

newDoc.Subject = “An IT audit inventory for your department has been created”

newDoc.SendTo = str_sendTo

Call newDoc.Send( False )

Messagebox “IT Group has been notified” , 0+64, “Message has been sent”

Subject: Agent and Notification

Would appreciate any suggestions or links to this question. I have a database that keeps track of all our user accounts and what departments they are in. I want to have an agent (below) notify the departmet managers, in a view, and send them an email so they can audit their employees. I also would like the department managers to reply from the email, that would have a question or two confirming they have checked their employess/accounts and repy to the IT department. Any ideas/suggestions?