I have lotusscript behind a button on a form. The button is to email the document to a mail-in db. I am getting the “No Names to send email to” error. With the debugger on, I checked the SendTo field and it has the correct address in it immediately before the uidoc. send. Any help is appreciated. Here is the code:Dim ReturnAddress As String
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = ws.CurrentDocument
ReturnAddress = uidoc.FieldGetText(“ReturnAddress”)
Call uidoc.FieldSetText(“SendTo”,ReturnAddress)
Call uidoc.refresh
Call uidoc.save
Call uidoc.send
Subject: No names to send email to error
after you run the script go look at the document properties and check the value in the SendTo field, anything there? If so, does it contain ONLY the value of your mail-in db?
Subject: RE: No names to send email to error
When I look at the field it only contains the mail-in database address. It is the correct address - I can send mail to it from my mail file. It does not matter what I put in the ReturnAddress field - I always get No names to send mail to. Thanks for the suggestions
Subject: No names to send email to error
Sounds like it doesn’t like the “Mail-In Database name” are you sure this is right?
Maybe try sending an e-mail to yourself and see if that works.