Hi everyone!
I have this form that I want to send to people in my "SendTo" field by clicking an action button. In the email to be sent, I would like everything that's inside my form to be found in the body of the email message.
I have this code (I got this from the help file):
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim maildoc As notesdocument
Set db = session.CurrentDatabase
Set doc = New NotesDocument( db )
doc.Form = "Memo"
doc.SendTo = "SendTo"
doc.Subject = "Sample notification"
Call doc.Send( True, doc.SendTo)
Messagebox "Message sent"
End Sub
When I try to run this, it gives me an error message: "Notes error: No Names found to send mail to"
I'm quite stuck at this. I can't find other ways to solve the error.
Please help me... pretty pleaaaseee. Thanks so much!
tin
I have this form that I want to send to people in my "SendTo" field by clicking an action button. In the email to be sent, I would like everything that's inside my form to be found in the body of the email message.
I have this code (I got this from the help file):
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim maildoc As notesdocument
Set db = session.CurrentDatabase
Set doc = New NotesDocument( db )
doc.Form = "Memo"
doc.SendTo = "SendTo"
doc.Subject = "Sample notification"
Call doc.Send( True, doc.SendTo)
Messagebox "Message sent"
End Sub
When I try to run this, it gives me an error message: "Notes error: No Names found to send mail to"
I'm quite stuck at this. I can't find other ways to solve the error.
Please help me... pretty pleaaaseee. Thanks so much!
tin