Newsletter - Err 4005

I have a small DB (50 MB - 400 doc.) and in this database is a newsletter (daily agent)

Now I get the Err 4005 (Public Const lsERR_NOTES_ERROR2 = 4005) in the last line of the following code:

Set newsletter = New NotesNewsletter(collection)

newsletter.DoSubject = True

newsletter.SubjectItemName = “NewsLetterSubject”

Set newnote = newsletter.FormatMsgWithDoclinks(db)

Please help

Bob

Subject: Newsletter - Err 4005

This is the reason:In order to send a backend message w/ doclinks, you must have a default view assigned. Go to the design of your mailfile and make the ($All) view the default…