Dim doc As NotesDocument
'...set value of doc..
doc.SaveMessageOnSend = True
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set doc = New NotesDocument( db )
doc.SaveMessageOnSend = True
doc.Form = "Main Topic"
doc.Subject = _
"Here's a new document that's going to be saved and mailed."
Call doc.Send( True, "Carl Pycha" )