DIMENSION recipients(1) recipients(1)="Phil Thomas" SESSION=CREATEOBJECT("NOTES.NOTESSESSION") m.mailfile=SESSION.GetEnvironmentString("MailFile",.T.) m.MailServer=SESSION.GetEnvironmentString("MailServer",.T.) DB=SESSION.GetDatabase(M.MailServer,m.mailfile) DOC=DB.CreateDocument() DOC.FORM="Memo" DOC.Subject="Subject" DOC.Body="Text" DOC.SEND(.F.,recipients) DOC.SaveMessageOnSend = .T.It works fine as long as the user is already logged onto Notes. Attempting this before logging in results in the error "OLE Dispatch exception code 7063 from ?:Database CN=(Database name)has not been opened yet"