我的客户端正在使用Lotus Notes 8.0.2。 我尝试使用下面的VBScript调用API的注意事项,以发送电子邮件:Lotus Notes API加载DLL时出错
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]
就行了呼叫objNotesSession.Initialize我得到以下错误:“加载DLL时出错:初始化”
如果我注释掉该行,执行线“设置objNotesDatabase = objNotesSession.GETDATABASE”,然后我得到的错误“加载DLL时出错:GETDATABASE”
请谁能告诉我这是为什么发生,我所能要解决它吗?
谢谢, 肖恩。
谢谢你。令人困惑的是Lotus Notes客户端在同一台机器上100%工作。我将检查PATH环境变量并让你知道。 – 2010-09-30 14:00:08
它绝对听起来像你的VBScript应用程序无法找到的注释DLL。 – 2010-10-01 02:00:35
好的埃德,但你有什么想法,为什么会这样,我如何解决? – 2010-10-01 03:09:14