loNotes = CREATEOBJECT("Notes.NotesSession" )with this line:
loNotes = CREATEOBJECT("Lotus.NotesSession" )You will need to get the user logged in and you will not need to worry about if Notes is open. To log the default user in on the machine simply call the Initialize() method and supply the password. If you're using version 6.5 or higher, you can change the user as well.
alines(acEmpfaenger, "ctestjs@Test.de;datenaustausch@Test.de", .T., ";")HTH
>* Array der Empfänger erstellen >alines(acEmpfaenger, chrtran("testjs@Test.de;datenaustausch@Test.de", ";", chr(13)) ) >loNotes = CREATEOBJECT("Notes.NotesSession" ) >loDatenbank = loNotes.GetDatabase( '', '' ) >loDatenbank.OpenMail() >loDatensatz = loDatenbank.CreateDocument("NotesDocument", "New", loDatenbank) >loDatensatz.ReplaceItemValue("Form", "Memo" ) >loDatensatz.ReplaceItemValue("Subject", "Test5 mit CC") >loDatensatz.SaveMessageOnSend = .t. >loDatensatz.ReplaceItemValue("SendTo", @acEmpfaenger) >loDatensatz.Send(.t.) >>
>loDatensatz.ReplaceItemValue("SendTo", @acEmpfaenger)
>
>The class file (loDatensatz) associated with this field cannot be found - class association cleard.