Problem with DocLink option of @Mailsend

I have used @mailsend command with doclink option. The problem is that the mail is going to the recipient excluding the doclink. This happened with all the forms in the system. When i copied the same form in another application, the mail was going and also had the doclink. I want to know what is the problem with that form or the database.

Subject: Check the db has a default view specified (WAS: Problem with DocLink option of @Mailsend)

Subject: RE: Check the db has a default view specified (WAS: Problem with DocLink option of @Mailsend)

I have checked, the database doesn’t have any default view specified. Shall i have to specify a default view for this purpose?

Subject: Yup (WAS: Check the db has a default view specified (WAS: Problem with DocLink option of @Mailsend))

Subject: RE: Yup (WAS: Check the db has a default view specified (WAS: Problem with DocLink option of @Mailsend))

Thanx. Now mails are containing the doclink.

But i am not able to understand the relation between doclink of a document and a default view. Kindly explain.

Subject: RE: Yup (WAS: Check the db has a default view specified (WAS: Problem with DocLink option of @Mailsend))

I don’t know enough to go into the depths of Notes to explain it, but features like the @MailSend [IncludeDoclink] flag and the NotesRichTextItem.AppendDocLink method (inc. Java counterpart) and the doclink handling in NotesNewsLetter require that the parent database has a default view specified.

This requirement is not at all clear from Designer help though.