Dear Friend’s
When we try to send a mails through the web, I had a hard time to isolation how to send current document information with the mail on web the environment. That means when New document is saved, New document information is needed to be routed with the mail on web the environment. It is not possible me to do on web environment .
PLEASE CAN YOU HELP ME
Example which is explain below is run fine and send a mail message to this address pradeep@kingslake.com. if the address is hard coded.
If we want to pick “sent to” address from the current form which is entered by the user according to the customer requirement .
How does pick the send to address from the form and put into the agent
Please Help
Thanking in advance
This example is worked when address is hard coded . But I want to pick the address from the current document.
- When the user want to save the Form on web , what they do is click the action call
“SAVE DOCUMENT” on the same Form.
-
“SAVE DOCUMENT” action is used this formula @Command[FileSave]
-
Once the save is done
-
Then Activate the @Command([ToolsRunMacro];“MAIL7”) in WebQuerySave Event on the form and run the MAIL7 Agent.
-
MAIL7 agent coding is
Dim session As New notessession
Dim db As notesdatabase
Set db = New notesdatabase(“devHub/Kes” ,“”)
Dim doc As notesdocument
Set db = session.currentdatabase
Set doc = session.documentcontext
Set doc = New NotesDocument(db)
doc.form=“ticket”
doc.SendTo =”pradeep@kingslake.com"
doc.CopyTo=”pradeep@kingslake.com”
doc.Subject =“New Topic”
doc.body =“New Topic”
Call doc.send(False)
How does pick the send to address from the form and put into the agent