Hi,I wrote this agent to send some information from the form:
Sub Initialize
Dim s As New notessession
Dim db As notesdatabase
Dim memo As notesdocument
Dim webdoc As notesdocument
Set db = s.currentdatabase
Set webdoc = s.documentcontext
Set memo = New notesdocument(db)
Dim item As NotesItem
Set rtitem = New NotesRichTextItem( memo, "Body" )
Call rtitem.appendtext("The Web Client has authorised an install in project "+webdoc.pfrc_name(0)+" described as "+webdoc.pfrc_hosp_info(0)+Chr(10)+Chr(10))
Call rtitem.appendtext("Please follow the document link below to view this document and assign it to a member of the department")
Call rtitem.AppendDocLink( webdoc, "Document Link" )
memo.form = "Memo"
memo.SendTo = "test@test.com"
memo.Importance = "1"
memo.CopyTo = Email
memo.Subject = "Request has been Authorised by Client"
Call memo.Send(False)
End Sub
But my problem is: instead to have this : memo.SendTo = “test@test.com”
I have an Email field in my form , I would like to have that:
memo.SendTo = Email Field
Please need the code for that.
Thanks