My mail function with Lotus Script isnt working. Can someone pls have a look and tell me what i’m doing wrong.
Dim mdoc As NotesDocument
Set db = session.currentdatabase
Set cdoc=session.documentcontext
Set mdoc = New NotesDocument( db)
mdoc.SendTo = “anastasia.vassili@capmsl.com”
mdoc.subject = “Web Call logged Test 2/5 getref agent”
Call mdoc.Send( False)
Subject: SendTo not working
Have you an error?Try:
Dim mdoc As NotesDocument Set db = session.currentdatabase
Set cdoc=session.documentcontext
Set mdoc = New NotesDocument( db)
mdoc.Form=“Memo”
mdoc.SendTo = “anastasia.vassili@capmsl.com”
mdoc.subject = “Web Call logged Test 2/5 getref agent”
Call mdoc.Send( False)
Subject: RE: SendTo not working
This code gave me an error: unexpected Set; Expected: End of statement
and this line:
Dim mdoc As NotesDocument Set db = session.currentdatabase
is highlighted red…
any ideas???
Subject: SendTo not working
Hi Anastasia,
I got caught so many times when testing mail functions, where I was trying to send mail to a group, where I was the only member of the group. In this case, no mail was sent, because Notes reckons you don’t need to be sent a copy of the email that you yourself are sending. Sending to yourself as a person might also have the same problem. Try sending to someone else - better to set up some test ids for this purpose.
hth
Tony