I have a web form where I want the information send to a particuliar email address when the submit button is used. but after pressing sumbit button, nothing happens
code on my form as below:
SendTo (Field)
Message (Field)
Your Name (Field)
(pass-thru)
$$QuerySaveAgent field (formula is AgentToSend)
I have created an agent (called AgentToSend) that
is shared, triggered manually from the actions menu, and set to run on "Run
Once @Commands may be used".
code below:
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim sendto As String
Set db=session.currentdatabase
Set doc=session.documentcontext
sendto=doc.SendTo(0)
Call doc.save(True,False)
Call doc.send(True,SendTo)
========================================
can anyone let me know what i have done wrong? where should i add the $$QuerySaveAgent on my form?