I have some VB code that sends an email. It works fine if I am already logged into Lotus Notes. I want the code to be able to work in batch and send the email when I am not signed on to Notes. When I try and use the 'Initialize' method to set my password, I get an error 'Lotus Notes(88) - R438 "No such property or method". Then Notes pops up a dialog box asking for my password.
global IndSession As Object
set IndSession = nothing
set IndSession = CreateObject("Notes.NotesSession")
Set db = IndSession.GetDatabase("LNMAIL2/SRV/xxxxxxxx", "mail\xxxxxx.nsf")