title: Lotus Notes API Error in loading DLL
body: <p>My client is using Lotus Notes 8.0.2.
  I am trying to use the following VBScript to call the Notes API to send an email:</p>
  
  <pre><code>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]
  </code></pre>
  
  <p>on the line Call objNotesSession.Initialize I get the following error: "Error in loading DLL: Initialize"</p>
  
  <p>If I comment out that line, executing line "set objNotesDatabase = objNotesSession.GETDATABASE", then I get the error "Error in loading DLL: GETDATABASE"</p>
  
  <p>Please can someone tell me why this is happening, and what I can do to resolve it?</p>
  
  <p>Thanks,
  Shawn.</p>