I tried the following script against a Notes 5 system it works but
against a notes 6 system this just does not work.

I get the message : "ActiveX component can't create object:
"Notes.NotesSession"

I replaced this by CreateObject("Lotus.NotesSession")
the error goes then I get the message the session is not initialised
now I put in the following

nSession = Call nSession.Initialise("password")

without password it does not work I do not want to be prompted for
password. After this none of the remaining lines work in the following
code against R6.


Set nSession = CreateObject("Notes.NotesSession")
session.initialise
'Gets the current user's maildatabase
Set db = nSession.GETDATABASE("","")
Call db.OPENMAIL
Set doc = db.CREATEDOCUMENT
Call doc.REPLACEITEMVALUE("SendTo", "Fn Ln/CA/ABC@ABC.com")
Call doc.REPLACEITEMVALUE("Subject", "Mail checked")
Call doc.REPLACEITEMVALUE("Body", "Did you get it")
Call doc.SEND(False)




can any of you kindly share a working code for R6 VB script to send
and receive mails from Lotus Notes


Thanks
Karen.