Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Notes new notessession Type mismatch

Status
Not open for further replies.

Flippertje

Technical User
Mar 12, 2004
118
NL
It's driving me crazy! Please help me out? I'm not that well known in this script...

I'm trying to send an email by lotus notes. My code constantly crashes with a type mismatch at the line 'set session= etc etc

dim db as notesdatabase
dim session as new notessession
dim doc as notesdocument
dim server as string, mailfile as string

set session=createobject ("notes.notessession")
server=session.getenviromentstring("MailServer", true)
mailfile=session.getenviromentstring("MailFile", true)
set db=session.getdatabase(server, mailfile)
set doc= db.createdocument()

the rest of the code works fine... (it creates the email)

Please help me out.

Scoobs
 
I'd replace this:
dim session as new notessession
with this:
dim session as notes.notessession

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top