Error Message mail.box has not been opened yet

Hi All,

Only one user in a database gets the error message

“mail.box has not been opened yet” while he is trying send a document. The script in send button has the following code.

Dim mailbox As NotesDatabase

Set mailbox = session.GetDatabase ( db.Server , “Mail.Box” )

Dim doc As New NotesDocument (mailbox)

doc.SendTo = newdoc.SubmittedTo

and all other fields like copyto, from etc.,

Call doc.Send( False )

It works for everyone else except one. I am not sure what the problem is.

Any suggestions would be appreciated. Thanks in advance.

Subject: error Message mail.box has not been opened yet

Currently eleminated using Dim doc as Notesdocument

Set doc = New NotesDocument( db )

Call doc.Send( False )

I guess this should work for all users.