Help with doc.sendto lotus script
Posted on 2006-06-13
I am trying to call the following from a button that is sent in an email.
Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Set db = s.CurrentDatabase
Set doc = New NotesDocument(db)
doc.SendTo = doc.ReturnReceipt
doc.Subject = "Locations Processed"
doc.Body = "I have processed the button you sent"
Once the button is pressed I want an email to be sent to the names in the ReturnReceipt field
If the field is null I want it to not error out.
At the moment all I get is the following error:
Notes Error: No names found to send mail to
The ReturnReceipt field is a computed names field on a form with the following formula:
confirm = "Yes"; (@UserName);
confirm = "No"; "";
The confirm field is a radio button with the options of Yes or No
Notes client 6.5
Any help much appreciated!