Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Using Domino COM Objects in ASP
~Sigmund Deslutherjip 4.Dec.03 11:22 AM a Web browser
Applications Development All Releases All Platforms


Thanks Charles - as you suggested, rebooting the machine stopped the ID File Locked message appearing.

However, the ASP page now stops execution with the following error:

NotesDbDirectory error '80040fcb'
Database open failed (%1)

Also, there is no domobj.dll file in the lotus/notes directory (only a domobj.tlb)..?

Any further advice would be appreciated.

Cheers

Sam


The code I'm trying to run is as follows:

<%

Option Explicit

dim sess, dir, db, doc, mailServer
dim astrTo, rtItem, message, message_sent
dim mailDB

Set sess = CreateObject("Lotus.NotesSession")
sess.Initialize("password")

response.write("...COM object instantiation and initialise OK")

mailServer = sess.GetEnvironmentString("MailServer", True)

response.write("<br>...Mail Server is: " & mailServer)

set dir = sess.GetDbDirectory(mailServer)
response.write("<br>...DB Dir is: " & sess.GetDbDirectory(mailServer))

mailDB = sess.GetEnvironmentString("MailFile", True)

response.write("<br>...MailFile in ini is: " & mailDB)

Set db = dir.OpenMailDatabase
response.write("<br>...Mail DB open OK")


If db.IsOpen then
Set doc = db.CreateDocument
response.write("<br>...The DB object has been used to create a Document object")
Call doc.ReplaceItemValue("Form", "Memo")

'To : (for more than one recipient, use an array of strings
ReDim astrTo(0)
astrTo(0) = "webmanager@man.mbs.ac.uk"
'astrTo(1) = "first.last@example.com"
Call doc.ReplaceItemValue("SendTo", astrTo)

' CC:
'ReDim strCC(0)
'strCC(0) = "webmanager@man.mbs.ac.uk"
'call objDoc.ReplaceItemValue("CopyTo", strCC)

' BCC:
'call objDoc.ReplaceItemValue("BlindCopyTo", strBCC)

' Subject:
Call doc.ReplaceItemValue("Subject", "404 Missing Page " & Now)

Set rtItem = doc.CreateRichTextItem( "Body" )

' Body
message = "Will it ever work..?"
Call rtItem.AppendText(message & vbCRLF & vbCRLF)

' Attachments
' Call objRTItem.EmbedObject( 1454, "", "drive:\directory\file.ext")' Must specify directory

doc.SaveMessageOnSend = False ' Change to True to save message in mailfile.nsf
Call doc.Send( False )
message_sent = true
else
message_sent = false
end if



%>




Using Domino COM Objects in ASP (~Sigmund Deslut... 3.Dec.03)
. . RE: Using Domino COM Objects in ASP... (~Vanessa Prehip... 3.Dec.03)
. . RE: Using Domino COM Objects in ASP... (~Vanessa Prehip... 3.Dec.03)
. . . . RE: Using Domino COM Objects in ASP... (~Sigmund Deslut... 4.Dec.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS