我的客户机正在使用Lotus Notes 8.0.2。
我正在尝试使用以下vbscript调用Notes API发送电子邮件:
dim objNotesSession, objNotesDatabase, objNotesItem, objNotesRichTextItem
set objNotesSession = CreateObject("Lotus.NotesSession")
Call objNotesSession.Initialize("[password here]")
set objNotesDatabase = objNotesSession.GETDATABASE("[server here]", "[path to NSF here]")
set objNotesDocument = objNotesDatabase.CreateDocument
set objNotesItem = objNotesDocument.ReplaceItemValue("Form", "Memo")
set objNotesItem = objNotesDocument.ReplaceItemValue("Subject", "My Test Subject")
set objNotesRichTextItem = objNotesDocument.CreateRichTextItem("Body")
objNotesRichTextItem.AppendText "This is the body"
objNotesRichTextItem.EmbedObject 1454, "", "[path to attachment here]"
objNotesDocument.Send False, "[to address here]"
[cleanup code here]
在线调用objnotessessession.initialize时,我得到以下错误:“加载dll时出错:initialize”
如果我注释掉该行,执行“set objnotesdatabase=objnotesession.getdatabase”行,则会得到错误“加载dll:getdatabase时出错”
有人能告诉我为什么会发生这种情况吗?我能做些什么来解决它?
谢谢,
肖恩。