I am new to domino and still fight to win LotusScript although the logic of its workflow is understandable (So I was thinking)
Anyway. I have a webform that gets filled in by registered webusers (Without a mailbox). In this form they fill a name and email of another person that is not registered.
When they submit this form, it should send a mail to the given mailbox on the form by the server as for instance from the firstname.lastname@example.org mailbox, with a simple text message.
I used a sullotion to try and solve my problem and got the following error,,, (NOW I AM STUCK).
Please look at my code and tell me what I am doing wrong!
Dim session As New NotesSession
Set newnote = New NotesDocument(db)<----(Error)
newnote.Subject = "Subject: " & doc.YourSubjectField(0)
newnote.From = "email@example.com"
newnote.SendTo = "firstname.lastname@example.org"
newnote.CopyTo = "email@example.com"
newnote.Form = "Memo"
Set rtItem = New NotesRichTextItem(newnote , "Body" )
Set style = session.CreateRichTextStyle
Call rtItem.APPENDTEXT("Dear " & director & " " + surname & ", " )
Call rtItem.AppendText(" More text, whatever you want.")
The Error: Initialize: 3: type mismatch on: DB
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!