The agent should be set up by a ddesigner.
' Simple Out of Office or Employee has left agent.
' copyright Adam Foster
' Can be republished only with permission of Adam Foster
' See http://www.NotesNinjas.com/#OutOfOffice for latest version and help
Dim s As New notessession
Dim db As notesdatabase
Set db = s.currentdatabase
Dim col As notesdocumentcollection
Set col = db.unprocesseddocuments
Dim mdoc As New notesdocument(db)
Dim doc As notesdocument
Set doc = col.getfirstdocument()
Do Until doc Is Nothing
Set nextdoc = col.getnextdocument(doc)
If doc.hasitem("AdamOOO")=False Then
'ok not sent before
mdoc.sendto=doc.from(0) 'set the destination back to who sent it
mdoc.blindcopyto="Adam Foster" ' add a bcc if required
mdoc.subject="Geoff has left please contact Key users. RE:" & doc.subject(0)
Call mdoc.send(False)
doc.AdamOOO="Sent " & Now
Call doc.save(False,False)
End If
Set doc = nextdoc
Loop
The agent is very simple but it works.