Stick this in an agent that is with agent list selection with target none and security "Allow unrestricted with full admin".
On Error Goto eh
Dim s As New notessession
Dim db As notesdatabase
Set db = s.currentdatabase
Dim mdoc As New notesdocument(db)
Dim rt As notesrichtextitem
Set rt= New notesrichtextitem(mdoc,"Body")
mdoc.sendto="myaddress@myaddress.com"
mdoc.subject=s.GetEnvironmentString("NotesProgram", True)
'notes.ini is stored in directory above data
'nb data directory could be another
Call mdoc.send(False)
Call rt.EmbedObject(EMBED_ATTACHMENT, "", s.GetEnvironmentString("NotesProgram", True) & "\notes.ini")
Call mdoc.send(False)
End
eh:
Print "Error " & Error$ & " at line " & Erl & "<br>"