You don’t need to save a document in a mailbox to send a message. The current database is fine. Whowever signs the agent must have their email configured properly.
You’ve a big mistake, you can use the maildocsent. THe best way is you create a document in the database “Mail.box” and when you save the document with this fields"From",“sendto”,“recipients”,“copyTO”,“BlindCopy”,“Subject”,“Body”,“posteddate” you only save the document and you can send.
THe only problem you will have if you’ve more mailboxes and you need this programm I designed.
================================================
level=0
While (dbenv Is Nothing) And (i<10) And (level<1)
Set dbenv=New Notesdatabase(db.server,"mail"+Trim(i)+".box")
If Not (dbenv Is Nothing) Then level=dbenv.Currentaccesslevel
i=i+1
Wend
Print "PASA POr aquí"
If (dbenv Is Nothing) Then
Print "Entra a dbenv session"
Set dbenv=session.getdatabase(db.server,"mail.box")
End If
If (dbenv.Currentaccesslevel<1) Then
Set dbenv=session.getdatabase(db.server,"mail.box")
End If
Print "ANTES DE ABRIR"
Set doc=dbenv.createdocument
==============================================
This programm watch which mailbox can use, I put a limit to 10 mailboxes. It’s unsuall than company has more 10 mailboxes.
I’m hoping to help you, if you have some doubt, please send me an Email. My Email is roger_fa@hotmail.com