Is inserting multiple doclinks possible?

I have a mail-in database that sends a mail message with a document link to a group after new mail arrives in the database. When users click on the document link, it takes them directly to the new document.

Can someone help me to compose a simple formula to also include a view link so that when users click on it, it takes them to the default frameset of the mail-in database (MailFS)?

Basically, I want users to receive an email that looks something like this:

There is a new message in the ABC database. Click on the document link to view it .

To view all other documents in the database, click on the following link

Hope this makes sense. Thanks in advance.

Subject: Is inserting multiple doclinks possible?

To make the default frameset open, you need a database link; a view link will open just that view, not the other frames of the framest.

You will need to send the mail using script, as creating database links not possible with formula.

This is the core script:

Dim session As New NotesSession

Dim db As NotesDatabase

Set db = session.CurrentDatabase

Dim maildoc As NotesDocument

Set maildoc = db.CreateDocument

maildoc.Form = “Memo”

maildoc.SendTo =

maildoc.Subject =

Dim rtitem As NotesRichTextItem

Set rtitem = New NotesRichTextItem(maildoc, “Body”)

Call rtitem.AppendDocLink(db, db.Title)