I am stuck on the sendto line of this code....examples that I have found show hardcoded email addresses with sendto, I am trying to get the email address to be a variable from my test file:
my database - test.nsf
my view - testview
my column within testview - emailaddress
so I thought I could do this ---> maildoc.sendto="emailaddress" OR
maildoc.sendto=emailaddress
but no luck.....
**********************************************
dim session as new notessession
dim db as notesdatabase
dim view as notesview
dim doc as notesdocument
dim maildoc as notesdocument
dim olddoc as notesdocument
set db=session.currentdatabase
set view=db.getview("testview")
set doc=view.getfirstdocument
do while not doc is nothing
set maildoc=db.createdocument
maildoc.form="Memo"
call copyelements(maildoc,doc)
'maildoc.sendto="recipient_name"
maildoc.sendto="email"
call maildoc.send(false,maildoc.sendto(0))
****************************************************
Any hints would be appreciated!
Diane
my database - test.nsf
my view - testview
my column within testview - emailaddress
so I thought I could do this ---> maildoc.sendto="emailaddress" OR
maildoc.sendto=emailaddress
but no luck.....
**********************************************
dim session as new notessession
dim db as notesdatabase
dim view as notesview
dim doc as notesdocument
dim maildoc as notesdocument
dim olddoc as notesdocument
set db=session.currentdatabase
set view=db.getview("testview")
set doc=view.getfirstdocument
do while not doc is nothing
set maildoc=db.createdocument
maildoc.form="Memo"
call copyelements(maildoc,doc)
'maildoc.sendto="recipient_name"
maildoc.sendto="email"
call maildoc.send(false,maildoc.sendto(0))
****************************************************
Any hints would be appreciated!
Diane