Hi! I has try use the session documentContext in lotus script but it return object variable not set, below is the code that i use to try for (After mail arriveds event), please comment. Thanks!
Sub Initialize
Dim session As NotesSession
Dim docIn As NotesDocument
Dim db As NotesDatabase
On Error Goto ErrProcess
Set session = New NotesSession
Set db=session.CurrentDatabase
Set docIn=session.DocumentContext
clientAddress = docIn.From(0)
clientSubject = docIn.Subject(0)
Msgbox clientsubject
Exit Sub
ErrProcess:
Print "Error " & Err() & ": " & Error()
End Sub